diff options
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 |