diff options
author | Lauri Ojansivu <x@xet7.org> | 2017-06-02 18:48:04 +0300 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2017-06-02 18:48:04 +0300 |
commit | 3b6c1baff3e5a62631ebdf6e7d428ede887b5efe (patch) | |
tree | 75fd6a2df6456d9b8d557333bbd19c51b74a5624 | |
parent | 89537700e3af68c02ec86ac18cc09c5fc13e62cf (diff) | |
download | wekan-3b6c1baff3e5a62631ebdf6e7d428ede887b5efe.tar.gz wekan-3b6c1baff3e5a62631ebdf6e7d428ede887b5efe.tar.bz2 wekan-3b6c1baff3e5a62631ebdf6e7d428ede887b5efe.zip |
Fix some lint errors.
-rw-r--r-- | client/components/lists/listHeader.js | 117 | ||||
-rw-r--r-- | i18n/fi.i18n.json | 8 | ||||
-rw-r--r-- | i18n/fr.i18n.json | 10 |
3 files changed, 68 insertions, 67 deletions
diff --git a/client/components/lists/listHeader.js b/client/components/lists/listHeader.js index 5c6e2099..05889655 100644 --- a/client/components/lists/listHeader.js +++ b/client/components/lists/listHeader.js @@ -1,72 +1,73 @@ BlazeComponent.extendComponent({ - editTitle(evt) { - evt.preventDefault(); - const newTitle = this.childComponents('inlinedForm')[0].getValue().trim(); - const list = this.currentData(); - if (newTitle) { - list.rename(newTitle.trim()); - } - }, + editTitle(evt) { + evt.preventDefault(); + const newTitle = this.childComponents('inlinedForm')[0].getValue().trim(); + const list = this.currentData(); + if (newTitle) { + list.rename(newTitle.trim()); + } + }, - isWatching() { - const list = this.currentData(); - return list.findWatcher(Meteor.userId()); - }, + isWatching() { + const list = this.currentData(); + return list.findWatcher(Meteor.userId()); + }, - limitToShowCardsCount() { - return Meteor.user().getLimitToShowCardsCount(); - }, + limitToShowCardsCount() { + return Meteor.user().getLimitToShowCardsCount(); + }, - showCardsCountForList(count) { - return count > this.limitToShowCardsCount(); - }, + showCardsCountForList(count) { + return count > this.limitToShowCardsCount(); + }, - events() { - return [{ - 'click .js-open-list-menu': Popup.open('listAction'), - submit: this.editTitle, - }]; - }, + events() { + return [{ + 'click .js-open-list-menu': Popup.open('listAction'), + submit: this.editTitle, + }]; + }, }).register('listHeader'); Template.listActionPopup.helpers({ - isWatching() { - return this.findWatcher(Meteor.userId()); - }, + isWatching() { + return this.findWatcher(Meteor.userId()); + }, }); Template.listActionPopup.events({ - 'click .js-add-card' () { - const listDom = document.getElementById(`js-list-${this._id}`); - const listComponent = BlazeComponent.getComponentForElement(listDom); - listComponent.openForm({ position: 'top' }); - Popup.close(); - }, - 'click .js-list-subscribe' () {}, - 'click .js-select-cards' () { - const cardIds = this.allCards().map((card) => card._id); - MultiSelection.add(cardIds); - Popup.close(); - }, - 'click .js-toggle-watch-list' () { - const currentList = this; - const level = currentList.findWatcher(Meteor.userId()) ? null : 'watching'; - Meteor.call('watch', 'list', currentList._id, level, (err, ret) => { - if (!err && ret) Popup.close(); - }); - }, - 'click .js-close-list' (evt) { - evt.preventDefault(); - this.archive(); - Popup.close(); - }, - 'click .js-more': Popup.open('listMore'), + 'click .js-add-card' () { + const listDom = document.getElementById(`js-list-${this._id}`); + const listComponent = BlazeComponent.getComponentForElement(listDom); + listComponent.openForm({ position: 'top' }); + Popup.close(); + }, + 'click .js-list-subscribe' () {}, + 'click .js-select-cards' () { + const cardIds = this.allCards().map((card) => card._id); + MultiSelection.add(cardIds); + Popup.close(); + }, + 'click .js-toggle-watch-list' () { + const currentList = this; + const level = currentList.findWatcher(Meteor.userId()) ? null : 'watching'; + Meteor.call('watch', 'list', currentList._id, level, (err, ret) => { + if (!err && ret) Popup.close(); + }); + }, + 'click .js-close-list' (evt) { + evt.preventDefault(); + this.archive(); + Popup.close(); + }, + 'click .js-more': Popup.open('listMore'), }); Template.listMorePopup.events({ - 'click .js-delete': Popup.afterConfirm('listDelete', function() { - Popup.close(); - Lists.remove(this._id); - Utils.goBoardId(this.boardId); - }), -});
\ No newline at end of file + 'click .js-delete': Popup.afterConfirm('listDelete', function() { + Popup.close(); + Lists.remove(this._id); + Utils.goBoardId(this.boardId); + }), +}); + diff --git a/i18n/fi.i18n.json b/i18n/fi.i18n.json index f315b964..effcd5ac 100644 --- a/i18n/fi.i18n.json +++ b/i18n/fi.i18n.json @@ -231,9 +231,9 @@ "listActionPopup-title": "Listaa toimet", "listImportCardPopup-title": "Tuo Trello kortti", "listMorePopup-title": "Lisää", - "link-list": "Link to this list", - "list-delete-pop": "All actions will be removed from the activity feed and you won't be able to recover the list. There is no undo.", - "list-delete-suggest-archive": "You can archive a list to remove it from the board and preserve the activity.", + "link-list": "Linkki tähän listaan", + "list-delete-pop": "Kaikki toimet poistetaan toimintasyötteestä ja listan poistaminen on lopullista. Tätä ei pysty peruuttamaan.", + "list-delete-suggest-archive": "Voit arkistoida listan jolloin sen voi palauttaa sisältöineen.", "lists": "Listat", "log-out": "Kirjaudu ulos", "log-in": "Kirjaudu sisään", @@ -279,7 +279,7 @@ "remove-cover": "Poista kansi", "remove-from-board": "Poista taululta", "remove-label": "Poista tunniste", - "listDeletePopup-title": "Delete List ?", + "listDeletePopup-title": "Poista lista ?", "remove-member": "Poista jäsen", "remove-member-from-card": "Poista kortilta", "remove-member-pop": "Poista __name__ (__username__) taululta __boardTitle__? Jäsen poistetaan kaikilta taulun korteilta. Heille lähetetään ilmoitus.", diff --git a/i18n/fr.i18n.json b/i18n/fr.i18n.json index 4467a344..d2e2960d 100644 --- a/i18n/fr.i18n.json +++ b/i18n/fr.i18n.json @@ -231,9 +231,9 @@ "listActionPopup-title": "Actions sur la liste", "listImportCardPopup-title": "Importer une carte Trello", "listMorePopup-title": "Plus", - "link-list": "Link to this list", - "list-delete-pop": "All actions will be removed from the activity feed and you won't be able to recover the list. There is no undo.", - "list-delete-suggest-archive": "You can archive a list to remove it from the board and preserve the activity.", + "link-list": "Lien vers cette liste", + "list-delete-pop": "Toutes les actions seront supprimées du fil d'activité et il ne sera plus possible de les récupérer. Cette action ne peut pas être annulée.", + "list-delete-suggest-archive": "Vous pouvez archiver une liste pour la supprimer d'un tableau et conserver son activité.", "lists": "Listes", "log-out": "Déconnexion", "log-in": "Connexion", @@ -278,8 +278,8 @@ "quick-access-description": "Ajouter un tableau à vos favoris pour créer un raccourci dans cette barre.", "remove-cover": "Enlever la page de présentation", "remove-from-board": "Retirer du tableau", - "remove-label": "Retirer une étiquette", - "listDeletePopup-title": "Delete List ?", + "remove-label": "Retirer l'étiquette", + "listDeletePopup-title": "Supprimer la liste ?", "remove-member": "Supprimer le membre", "remove-member-from-card": "Supprimer de la carte", "remove-member-pop": "Supprimer __name__ (__username__) de __boardTitle__ ? Ce membre sera supprimé de toutes les cartes du tableau et recevra une notification.", |