diff options
author | RJevnikar <12701645+rjevnikar@users.noreply.github.com> | 2018-06-06 20:05:44 +0000 |
---|---|---|
committer | RJevnikar <12701645+rjevnikar@users.noreply.github.com> | 2018-06-06 20:05:44 +0000 |
commit | 8f364281d2632809b4650db3ba49939617b6ca09 (patch) | |
tree | ad29169efbe7011be15c2040676046388397c2e2 /client/components/boards | |
parent | 1f17cee39b7acfe50979b478fa2b80f37aea1614 (diff) | |
download | wekan-8f364281d2632809b4650db3ba49939617b6ca09.tar.gz wekan-8f364281d2632809b4650db3ba49939617b6ca09.tar.bz2 wekan-8f364281d2632809b4650db3ba49939617b6ca09.zip |
Remove delete option from board hamburger menu
Diffstat (limited to 'client/components/boards')
-rw-r--r-- | client/components/boards/boardArchive.jade | 3 | ||||
-rw-r--r-- | client/components/boards/boardArchive.js | 2 | ||||
-rw-r--r-- | client/components/boards/boardHeader.jade | 7 |
3 files changed, 4 insertions, 8 deletions
diff --git a/client/components/boards/boardArchive.jade b/client/components/boards/boardArchive.jade index a9b1be85..29372b39 100644 --- a/client/components/boards/boardArchive.jade +++ b/client/components/boards/boardArchive.jade @@ -16,3 +16,6 @@ template(name="archivedBoards") else li.no-items-message {{_ 'no-archived-boards'}} +template(name="deleteBoardPopup") + p {{_ 'delete-board-pop'}} + button.js-confirm.negate.full(type="submit") {{_ 'delete'}} diff --git a/client/components/boards/boardArchive.js b/client/components/boards/boardArchive.js index f31d7d86..dbebdd70 100644 --- a/client/components/boards/boardArchive.js +++ b/client/components/boards/boardArchive.js @@ -29,7 +29,7 @@ BlazeComponent.extendComponent({ board.restore(); Utils.goBoardId(board._id); }, - 'click .js-delete': Popup.afterConfirm('cardDelete', function() { + 'click .js-delete-board': Popup.afterConfirm('boardDelete', function() { Popup.close(); const isSandstorm = Meteor.settings && Meteor.settings.public && Meteor.settings.public.sandstorm; diff --git a/client/components/boards/boardHeader.jade b/client/components/boards/boardHeader.jade index b8801ac2..b4ccd3b3 100644 --- a/client/components/boards/boardHeader.jade +++ b/client/components/boards/boardHeader.jade @@ -129,7 +129,6 @@ template(name="boardMenuPopup") ul.pop-over-list li: a(href="{{exportUrl}}", download="{{exportFilename}}") {{_ 'export-board'}} li: a.js-archive-board {{_ 'archive-board'}} - li: a.js-delete-board {{_ 'delete-board'}} li: a.js-outgoing-webhooks {{_ 'outgoing-webhooks'}} if isSandstorm hr @@ -238,12 +237,6 @@ template(name="archiveBoardPopup") p {{_ 'close-board-pop'}} button.js-confirm.negate.full(type="submit") {{_ 'archive'}} -template(name="deleteBoardPopup") - p {{_ 'delete-board-pop'}} - unless archived - p {{_ 'board-delete-suggest-archive'}} - button.js-confirm.negate.full(type="submit") {{_ 'delete'}} - template(name="outgoingWebhooksPopup") each integrations form.integration-form |