diff options
author | Pouyan Savoli <papoola@hotmail.com> | 2017-08-27 22:31:24 +0200 |
---|---|---|
committer | Pouyan Savoli <papoola@hotmail.com> | 2017-09-22 22:59:32 +0200 |
commit | afd87e3caa1fedbe8fe5dbaefa485fee1ed85c71 (patch) | |
tree | 1ebd0ab35da1555e98aef2741119dee84120a5b1 /models/boards.js | |
parent | ade3c02122d262c72bd7c4fd1cbcab8e136184ba (diff) | |
download | wekan-afd87e3caa1fedbe8fe5dbaefa485fee1ed85c71.tar.gz wekan-afd87e3caa1fedbe8fe5dbaefa485fee1ed85c71.tar.bz2 wekan-afd87e3caa1fedbe8fe5dbaefa485fee1ed85c71.zip |
many custom fields model and UI enhancements
Diffstat (limited to 'models/boards.js')
-rw-r--r-- | models/boards.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/models/boards.js b/models/boards.js index 8a7844e2..98c0e46d 100644 --- a/models/boards.js +++ b/models/boards.js @@ -235,6 +235,10 @@ Boards.helpers({ return `board-color-${this.color}`; }, + customFields() { + return CustomFields.find({ boardId: this._id }, { sort: { name: 1 } }); + }, + // XXX currently mutations return no value so we have an issue when using addLabel in import // XXX waiting on https://github.com/mquandalle/meteor-collection-mutations/issues/1 to remove... pushLabel(name, color) { |