mirror of
https://github.com/wekan/wekan.git
synced 2026-01-05 17:18:49 +01:00
Added translations to questions about are you sure.
Thanks to xet7 ! Related https://github.com/wekan/wekan/pull/5745
This commit is contained in:
parent
bc2eab6f9d
commit
4d145ab4ad
2 changed files with 6 additions and 5 deletions
|
|
@ -239,7 +239,7 @@ BlazeComponent.extendComponent({
|
|||
evt.preventDefault();
|
||||
},
|
||||
'click .js-clone-board'(evt) {
|
||||
if (confirm('Are you sure you want to clone this board?')) {
|
||||
if (confirm(TAPi18n.__('duplicate-board-confirm')) {
|
||||
let title =
|
||||
getSlug(ReactiveCache.getBoard(this.currentData()._id).title) ||
|
||||
'cloned-board';
|
||||
|
|
@ -268,11 +268,10 @@ BlazeComponent.extendComponent({
|
|||
}
|
||||
},
|
||||
'click .js-archive-board'(evt) {
|
||||
if (confirm('Are you sure you want to archive this board?'))
|
||||
{
|
||||
if (confirm(TAPi18n.__('archive-board-confirm')) {
|
||||
const boardId = this.currentData()._id;
|
||||
Meteor.call('archiveBoard', boardId);
|
||||
evt.preventDefault();
|
||||
Meteor.call('archiveBoard', boardId);
|
||||
evt.preventDefault();
|
||||
}
|
||||
},
|
||||
'click .js-accept-invite'() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue