mirror of
https://github.com/wekan/wekan.git
synced 2025-04-24 22:17:16 -04:00
Move "Rules" from "Board View" to "Board Settings".
Thanks to helioguardabaxo and xet7 ! Closes #2973
This commit is contained in:
parent
c8ec5d5f62
commit
e7d2343593
4 changed files with 8 additions and 18 deletions
|
@ -193,20 +193,6 @@ template(name="boardChangeViewPopup")
|
||||||
| {{_ 'board-view-cal'}}
|
| {{_ 'board-view-cal'}}
|
||||||
if $eq Utils.boardView "board-view-cal"
|
if $eq Utils.boardView "board-view-cal"
|
||||||
i.fa.fa-check
|
i.fa.fa-check
|
||||||
if currentUser.isAdmin
|
|
||||||
hr
|
|
||||||
li
|
|
||||||
with "board-view-rules"
|
|
||||||
a.js-open-rules-view(title="{{_ 'rules'}}")
|
|
||||||
i.fa.fa-magic
|
|
||||||
| {{_ 'rules'}}
|
|
||||||
else if currentUser.isBoardAdmin
|
|
||||||
hr
|
|
||||||
li
|
|
||||||
with "board-view-rules"
|
|
||||||
a.js-open-rules-view(title="{{_ 'rules'}}")
|
|
||||||
i.fa.fa-magic
|
|
||||||
| {{_ 'rules'}}
|
|
||||||
|
|
||||||
template(name="createBoard")
|
template(name="createBoard")
|
||||||
form
|
form
|
||||||
|
|
|
@ -191,10 +191,6 @@ Template.boardChangeViewPopup.events({
|
||||||
Utils.setBoardView('board-view-cal');
|
Utils.setBoardView('board-view-cal');
|
||||||
Popup.close();
|
Popup.close();
|
||||||
},
|
},
|
||||||
'click .js-open-rules-view'() {
|
|
||||||
Modal.openWide('rulesMain');
|
|
||||||
Popup.close();
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const CreateBoard = BlazeComponent.extendComponent({
|
const CreateBoard = BlazeComponent.extendComponent({
|
||||||
|
|
|
@ -267,6 +267,10 @@ template(name="outgoingWebhooksPopup")
|
||||||
|
|
||||||
template(name="boardMenuPopup")
|
template(name="boardMenuPopup")
|
||||||
ul.pop-over-list
|
ul.pop-over-list
|
||||||
|
li
|
||||||
|
a.js-open-rules-view(title="{{_ 'rules'}}")
|
||||||
|
i.fa.fa-magic
|
||||||
|
| {{_ 'rules'}}
|
||||||
li
|
li
|
||||||
a.js-custom-fields
|
a.js-custom-fields
|
||||||
i.fa.fa-list-alt
|
i.fa.fa-list-alt
|
||||||
|
|
|
@ -182,6 +182,10 @@ Template.memberPopup.helpers({
|
||||||
|
|
||||||
Template.boardMenuPopup.events({
|
Template.boardMenuPopup.events({
|
||||||
'click .js-rename-board': Popup.open('boardChangeTitle'),
|
'click .js-rename-board': Popup.open('boardChangeTitle'),
|
||||||
|
'click .js-open-rules-view'() {
|
||||||
|
Modal.openWide('rulesMain');
|
||||||
|
Popup.close();
|
||||||
|
},
|
||||||
'click .js-custom-fields'() {
|
'click .js-custom-fields'() {
|
||||||
Sidebar.setView('customFields');
|
Sidebar.setView('customFields');
|
||||||
Popup.close();
|
Popup.close();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue