diff options
author | Andrés Manelli <andresmanelli@gmail.com> | 2018-03-20 00:13:42 -0300 |
---|---|---|
committer | Andrés Manelli <andresmanelli@gmail.com> | 2018-08-10 23:55:19 +0200 |
commit | dcc7b2970f3635b95bc71e3fc163a51cacad0931 (patch) | |
tree | 58f4bffdfef29b2bdab8d04a64fd8c873a0f20a4 /models/boards.js | |
parent | 193af893ee4da894e9494792306f5825e99de74a (diff) | |
download | wekan-dcc7b2970f3635b95bc71e3fc163a51cacad0931.tar.gz wekan-dcc7b2970f3635b95bc71e3fc163a51cacad0931.tar.bz2 wekan-dcc7b2970f3635b95bc71e3fc163a51cacad0931.zip |
Add UI for importing card-as-card and board-as-card
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 c51a9865..eda34bf4 100644 --- a/models/boards.js +++ b/models/boards.js @@ -212,6 +212,10 @@ Boards.helpers({ return this.permission === 'public'; }, + cards() { + return Cards.find({ boardId: this._id, archived: false }, { sort: { title: 1 } }); + }, + lists() { return Lists.find({ boardId: this._id, archived: false }, { sort: { sort: 1 } }); }, |