From 3a7ae7c5f240287a4fc58eb3a321129be718d40c Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Tue, 9 Oct 2018 21:16:47 +0300 Subject: Fix lint errors. --- client/components/settings/peopleBody.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'client/components/settings/peopleBody.js') diff --git a/client/components/settings/peopleBody.js b/client/components/settings/peopleBody.js index acc94081..a4d70974 100644 --- a/client/components/settings/peopleBody.js +++ b/client/components/settings/peopleBody.js @@ -67,12 +67,12 @@ Template.editUserPopup.onCreated(function() { Meteor.call('getAuthenticationsEnabled', (_, result) => { if (result) { - // TODO : add a management of different languages + // TODO : add a management of different languages // (ex {value: ldap, text: TAPi18n.__('ldap', {}, T9n.getLanguage() || 'en')}) this.authenticationMethods.set([ {value: 'password'}, // Gets only the authentication methods availables - ...Object.entries(result).filter(e => e[1]).map(e => ({value: e[0]})), + ...Object.entries(result).filter((e) => e[1]).map((e) => ({value: e[0]})), ]); } }); @@ -94,7 +94,7 @@ Template.editUserPopup.helpers({ const userId = Template.instance().data.userId; const selected = Users.findOne(userId).authenticationMethod; return selected === 'ldap'; - } + }, }); BlazeComponent.extendComponent({ @@ -131,7 +131,7 @@ Template.editUserPopup.events({ 'profile.fullname': fullname, 'isAdmin': isAdmin === 'true', 'loginDisabled': isActive === 'true', - 'authenticationMethod': authentication + 'authenticationMethod': authentication, }, }); -- cgit v1.2.3-1-g7c22