diff options
author | Ghassen Rjab <rjab.ghassen@gmail.com> | 2017-07-08 13:23:33 +0100 |
---|---|---|
committer | Ghassen Rjab <rjab.ghassen@gmail.com> | 2017-07-08 13:23:33 +0100 |
commit | 3f4c2855513646fbd826d0473b6304dbad1f3b16 (patch) | |
tree | cb9ba1943eed0e66989370992e69981bce68eb09 /client/components/boards | |
parent | 61b2c91ffed53a616eeab0cee4e8b0c4eb7f764e (diff) | |
download | wekan-3f4c2855513646fbd826d0473b6304dbad1f3b16.tar.gz wekan-3f4c2855513646fbd826d0473b6304dbad1f3b16.tar.bz2 wekan-3f4c2855513646fbd826d0473b6304dbad1f3b16.zip |
Add import Wekan board feature
Diffstat (limited to 'client/components/boards')
-rw-r--r-- | client/components/boards/boardHeader.jade | 8 | ||||
-rw-r--r-- | client/components/boards/boardHeader.js | 7 |
2 files changed, 14 insertions, 1 deletions
diff --git a/client/components/boards/boardHeader.jade b/client/components/boards/boardHeader.jade index e61aea35..b965e917 100644 --- a/client/components/boards/boardHeader.jade +++ b/client/components/boards/boardHeader.jade @@ -191,8 +191,14 @@ template(name="createBoard") input.primary.wide(type="submit" value="{{_ 'create'}}") span.quiet | {{_ 'or'}} - a(href="{{pathFor 'import'}}") {{_ 'import-board'}} + a.js-import-board {{_ 'import-board'}} +template(name="chooseBoardSource") + ul + li + a(href="{{pathFor 'import/trello'}}") {{_ 'from-trello'}} + li + a(href="{{pathFor 'import/wekan'}}") {{_ 'from-wekan'}} template(name="boardChangeTitlePopup") form diff --git a/client/components/boards/boardHeader.js b/client/components/boards/boardHeader.js index 06defbfa..c8b44824 100644 --- a/client/components/boards/boardHeader.js +++ b/client/components/boards/boardHeader.js @@ -174,10 +174,17 @@ const CreateBoard = BlazeComponent.extendComponent({ 'click .js-change-visibility': this.toggleVisibilityMenu, 'click .js-import': Popup.open('boardImportBoard'), submit: this.onSubmit, + 'click .js-import-board': Popup.open('chooseBoardSource'), }]; }, }).register('createBoardPopup'); +BlazeComponent.extendComponent({ + template() { + return 'chooseBoardSource'; + }, +}).register('chooseBoardSourcePopup'); + (class HeaderBarCreateBoard extends CreateBoard { onSubmit(evt) { super.onSubmit(evt); |