mirror of
https://github.com/wekan/wekan.git
synced 2025-12-18 00:10:13 +01:00
Fix problems highlighted by Codacy/PR Quality Review
This commit is contained in:
parent
3ce3fa74b3
commit
78b9436f38
4 changed files with 13 additions and 2 deletions
|
|
@ -129,6 +129,7 @@ template(name="boardMenuPopup")
|
||||||
ul.pop-over-list
|
ul.pop-over-list
|
||||||
li: a(href="{{exportUrl}}", download="{{exportFilename}}") {{_ 'export-board'}}
|
li: a(href="{{exportUrl}}", download="{{exportFilename}}") {{_ 'export-board'}}
|
||||||
li: a.js-archive-board {{_ 'archive-board'}}
|
li: a.js-archive-board {{_ 'archive-board'}}
|
||||||
|
li: a.js-delete-board {{_ 'delete-board'}}
|
||||||
li: a.js-outgoing-webhooks {{_ 'outgoing-webhooks'}}
|
li: a.js-outgoing-webhooks {{_ 'outgoing-webhooks'}}
|
||||||
if isSandstorm
|
if isSandstorm
|
||||||
hr
|
hr
|
||||||
|
|
@ -237,6 +238,10 @@ template(name="archiveBoardPopup")
|
||||||
p {{_ 'close-board-pop'}}
|
p {{_ 'close-board-pop'}}
|
||||||
button.js-confirm.negate.full(type="submit") {{_ 'archive'}}
|
button.js-confirm.negate.full(type="submit") {{_ 'archive'}}
|
||||||
|
|
||||||
|
template(name="deleteBoardPopup")
|
||||||
|
p {{_ 'delete-board-pop'}}
|
||||||
|
button.js-confirm.negate.full(type="submit") {{_ 'delete'}}
|
||||||
|
|
||||||
template(name="outgoingWebhooksPopup")
|
template(name="outgoingWebhooksPopup")
|
||||||
each integrations
|
each integrations
|
||||||
form.integration-form
|
form.integration-form
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,12 @@ Template.boardMenuPopup.events({
|
||||||
// confirm that the board was successfully archived.
|
// confirm that the board was successfully archived.
|
||||||
FlowRouter.go('home');
|
FlowRouter.go('home');
|
||||||
}),
|
}),
|
||||||
|
'click .js-delete-board': Popup.afterConfirm('deleteBoard', function() {
|
||||||
|
const currentBoard = Boards.findOne(Session.get('currentBoard'));
|
||||||
|
Popup.close();
|
||||||
|
Boards.remove(currentBoard._id);
|
||||||
|
FlowRouter.go('home');
|
||||||
|
}),
|
||||||
'click .js-outgoing-webhooks': Popup.open('outgoingWebhooks'),
|
'click .js-outgoing-webhooks': Popup.open('outgoingWebhooks'),
|
||||||
'click .js-import-board': Popup.open('chooseBoardSource'),
|
'click .js-import-board': Popup.open('chooseBoardSource'),
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -156,7 +156,7 @@ BlazeComponent.extendComponent({
|
||||||
'submit .js-card-details-requester'(evt) {
|
'submit .js-card-details-requester'(evt) {
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
const requester = this.currentComponent().getValue().trim();
|
const requester = this.currentComponent().getValue().trim();
|
||||||
if (requestor) {
|
if (requester) {
|
||||||
this.data().setRequestedBy(requester);
|
this.data().setRequestedBy(requester);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,7 @@ Cards.attachSchema(new SimpleSchema({
|
||||||
},
|
},
|
||||||
requestedBy: {
|
requestedBy: {
|
||||||
type: String,
|
type: String,
|
||||||
optional: true
|
optional: true,
|
||||||
},
|
},
|
||||||
assignedBy: {
|
assignedBy: {
|
||||||
type: String,
|
type: String,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue