summaryrefslogtreecommitdiffstats
path: root/client/components/boards/boardArchive.js
diff options
context:
space:
mode:
authorRJevnikar <12701645+rjevnikar@users.noreply.github.com>2018-06-06 15:27:05 +0000
committerRJevnikar <12701645+rjevnikar@users.noreply.github.com>2018-06-06 15:27:05 +0000
commitde59758471f98d4cafc5db9de0d535031fcb2363 (patch)
tree9f31de968f36dcfa07470667020a527d351bde1c /client/components/boards/boardArchive.js
parentea109cfdd77daa69c66220ca942a67e99255551b (diff)
downloadwekan-de59758471f98d4cafc5db9de0d535031fcb2363.tar.gz
wekan-de59758471f98d4cafc5db9de0d535031fcb2363.tar.bz2
wekan-de59758471f98d4cafc5db9de0d535031fcb2363.zip
Add delete board to Recycle Bin, fix delete-board menu item on board menu
Diffstat (limited to 'client/components/boards/boardArchive.js')
-rw-r--r--client/components/boards/boardArchive.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/client/components/boards/boardArchive.js b/client/components/boards/boardArchive.js
index acb53149..f31d7d86 100644
--- a/client/components/boards/boardArchive.js
+++ b/client/components/boards/boardArchive.js
@@ -29,6 +29,18 @@ BlazeComponent.extendComponent({
board.restore();
Utils.goBoardId(board._id);
},
+ 'click .js-delete': Popup.afterConfirm('cardDelete', function() {
+ Popup.close();
+ const isSandstorm = Meteor.settings && Meteor.settings.public &&
+ Meteor.settings.public.sandstorm;
+ if (isSandstorm && Session.get('currentBoard')) {
+ const currentBoard = Boards.findOne(Session.get('currentBoard'));
+ Boards.remove(currentBoard._id);
+ }
+ const board = this.currentData();
+ Boards.remove(board._id);
+ FlowRouter.go('home');
+ }),
}];
},
}).register('archivedBoards');