mirror of
https://github.com/wekan/wekan.git
synced 2025-12-28 13:18:49 +01:00
add: optional board description
This commit is contained in:
parent
011f53ad08
commit
21fa6fdc32
5 changed files with 15 additions and 0 deletions
|
|
@ -117,6 +117,9 @@ template(name="boardChangeTitlePopup")
|
||||||
label
|
label
|
||||||
| {{_ 'title'}}
|
| {{_ 'title'}}
|
||||||
input.js-board-name(type="text" value=title autofocus)
|
input.js-board-name(type="text" value=title autofocus)
|
||||||
|
label
|
||||||
|
| {{_ 'description'}}
|
||||||
|
textarea.js-board-desc= description
|
||||||
input.primary.wide(type="submit" value="{{_ 'rename'}}")
|
input.primary.wide(type="submit" value="{{_ 'rename'}}")
|
||||||
|
|
||||||
template(name="archiveBoardPopup")
|
template(name="archiveBoardPopup")
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,10 @@ Template.boardMenuPopup.events({
|
||||||
Template.boardChangeTitlePopup.events({
|
Template.boardChangeTitlePopup.events({
|
||||||
submit(evt, tpl) {
|
submit(evt, tpl) {
|
||||||
const newTitle = tpl.$('.js-board-name').val().trim();
|
const newTitle = tpl.$('.js-board-name').val().trim();
|
||||||
|
const newDesc = tpl.$('.js-board-desc').val().trim();
|
||||||
if (newTitle) {
|
if (newTitle) {
|
||||||
this.rename(newTitle);
|
this.rename(newTitle);
|
||||||
|
this.setDesciption(newDesc);
|
||||||
Popup.close();
|
Popup.close();
|
||||||
}
|
}
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
|
|
|
||||||
|
|
@ -20,5 +20,6 @@ template(name="boardList")
|
||||||
i.fa.js-star-board(
|
i.fa.js-star-board(
|
||||||
class="fa-star{{#if isStarred}} is-star-active{{else}}-o{{/if}}"
|
class="fa-star{{#if isStarred}} is-star-active{{else}}-o{{/if}}"
|
||||||
title="{{_ 'star-board-title'}}")
|
title="{{_ 'star-board-title'}}")
|
||||||
|
p.board-list-item-desc= description
|
||||||
li.js-add-board
|
li.js-add-board
|
||||||
a.board-list-item.label {{_ 'add-board'}}
|
a.board-list-item.label {{_ 'add-board'}}
|
||||||
|
|
|
||||||
|
|
@ -71,6 +71,10 @@ Boards.attachSchema(new SimpleSchema({
|
||||||
'midnight',
|
'midnight',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
description: {
|
||||||
|
type: String,
|
||||||
|
optional: true,
|
||||||
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -141,6 +145,10 @@ Boards.mutations({
|
||||||
return { $set: { title }};
|
return { $set: { title }};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
setDesciption(description) {
|
||||||
|
return { $set: {description} };
|
||||||
|
},
|
||||||
|
|
||||||
setColor(color) {
|
setColor(color) {
|
||||||
return { $set: { color }};
|
return { $set: { color }};
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,7 @@ Meteor.publish('boards', function() {
|
||||||
archived: 1,
|
archived: 1,
|
||||||
slug: 1,
|
slug: 1,
|
||||||
title: 1,
|
title: 1,
|
||||||
|
description: 1,
|
||||||
color: 1,
|
color: 1,
|
||||||
members: 1,
|
members: 1,
|
||||||
permission: 1,
|
permission: 1,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue