diff options
author | Andrés Manelli <andresmanelli@gmail.com> | 2018-01-22 16:54:19 -0300 |
---|---|---|
committer | Andrés Manelli <andresmanelli@gmail.com> | 2018-01-22 16:54:19 -0300 |
commit | a14f4ffee297872c72edc99d7b147d18802f7d44 (patch) | |
tree | 02376dced6aa57a3b7e0bf5a78a34582c38d04b8 /models/boards.js | |
parent | 2d7d9b5d9ffed0349b2cf65acc61561c21d05aaf (diff) | |
download | wekan-a14f4ffee297872c72edc99d7b147d18802f7d44.tar.gz wekan-a14f4ffee297872c72edc99d7b147d18802f7d44.tar.bz2 wekan-a14f4ffee297872c72edc99d7b147d18802f7d44.zip |
Add view boards field to change between views
Diffstat (limited to 'models/boards.js')
-rw-r--r-- | models/boards.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/models/boards.js b/models/boards.js index 5f39d8a4..84a715fb 100644 --- a/models/boards.js +++ b/models/boards.js @@ -31,6 +31,14 @@ Boards.attachSchema(new SimpleSchema({ } }, }, + view: { + type: String, + autoValue() { // eslint-disable-line consistent-return + if (this.isInsert) { + return 'board-view-swimlanes'; + } + }, + }, createdAt: { type: Date, autoValue() { // eslint-disable-line consistent-return |