diff options
author | amadilsons <joao.amado.95@gmail.com> | 2017-10-04 17:48:37 +0200 |
---|---|---|
committer | amadilsons <joao.amado.95@gmail.com> | 2017-10-04 17:48:37 +0200 |
commit | c865bfe49785181d97b25cb683c0ed37d82c1a69 (patch) | |
tree | 5d796c8602f9001c3e91f9edbc73a83315750ad1 /client/components/sidebar/sidebarArchives.js | |
parent | 089dbf0cf6a3e144d0271a8666d58e689f8c8dba (diff) | |
download | wekan-c865bfe49785181d97b25cb683c0ed37d82c1a69.tar.gz wekan-c865bfe49785181d97b25cb683c0ed37d82c1a69.tar.bz2 wekan-c865bfe49785181d97b25cb683c0ed37d82c1a69.zip |
most work concluded, code needs clean up, further testing required
Diffstat (limited to 'client/components/sidebar/sidebarArchives.js')
-rw-r--r-- | client/components/sidebar/sidebarArchives.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client/components/sidebar/sidebarArchives.js b/client/components/sidebar/sidebarArchives.js index c8196f23..2e8754b0 100644 --- a/client/components/sidebar/sidebarArchives.js +++ b/client/components/sidebar/sidebarArchives.js @@ -32,7 +32,9 @@ BlazeComponent.extendComponent({ return [{ 'click .js-restore-card'() { const card = this.currentData(); - card.restore(); + if(card.canBeRestored()){ + card.restore(); + } }, 'click .js-delete-card': Popup.afterConfirm('cardDelete', function() { const cardId = this._id; |