diff options
author | Lauri Ojansivu <x@xet7.org> | 2019-02-01 21:26:04 +0200 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2019-02-01 21:26:04 +0200 |
commit | de9965213ae32f4c314dd1a791891e01d12da1dd (patch) | |
tree | d972e460c06dda599d642b7c0fac123ed1c50283 /client | |
parent | c2118f4830020631ab228c59c8b9247a13655ae6 (diff) | |
download | wekan-de9965213ae32f4c314dd1a791891e01d12da1dd.tar.gz wekan-de9965213ae32f4c314dd1a791891e01d12da1dd.tar.bz2 wekan-de9965213ae32f4c314dd1a791891e01d12da1dd.zip |
- Fix lint errors.
Thanks to xet7 !
Diffstat (limited to 'client')
-rw-r--r-- | client/components/main/layouts.js | 8 | ||||
-rw-r--r-- | client/components/settings/settingBody.js | 15 |
2 files changed, 9 insertions, 14 deletions
diff --git a/client/components/main/layouts.js b/client/components/main/layouts.js index 2e057568..73da80e5 100644 --- a/client/components/main/layouts.js +++ b/client/components/main/layouts.js @@ -28,7 +28,7 @@ Template.userFormsLayout.onCreated(function() { onReady() { instance.currentSetting.set(Settings.findOne()); return this.stop(); - } + }, }); }); @@ -140,16 +140,16 @@ function getUserAuthenticationMethod(defaultAuthenticationMethod, match) { Meteor.subscribe('user-authenticationMethod', match, { onReady() { const user = Users.findOne(); - + const authenticationMethod = user ? user.authenticationMethod : defaultAuthenticationMethod; - + resolve(authenticationMethod); }, }); } catch(error) { resolve(defaultAuthenticationMethod); } - }) + }); } diff --git a/client/components/settings/settingBody.js b/client/components/settings/settingBody.js index 1d05a8c7..2f58d551 100644 --- a/client/components/settings/settingBody.js +++ b/client/components/settings/settingBody.js @@ -156,7 +156,7 @@ BlazeComponent.extendComponent({ customHTMLafterBodyStart, customHTMLbeforeBodyEnd, displayAuthenticationMethod, - defaultAuthenticationMethod + defaultAuthenticationMethod, }, }); } catch (e) { @@ -171,17 +171,14 @@ BlazeComponent.extendComponent({ sendSMTPTestEmail() { Meteor.call('sendSMTPTestEmail', (err, ret) => { - if (!err && ret) { /* eslint-disable no-console */ + if (!err && ret) { const message = `${TAPi18n.__(ret.message)}: ${ret.email}`; - console.log(message); alert(message); } else { const reason = err.reason || ''; const message = `${TAPi18n.__(err.error)}\n${reason}`; - console.log(message, err); alert(message); } - /* eslint-enable no-console */ }); }, @@ -196,7 +193,7 @@ BlazeComponent.extendComponent({ 'click button.js-send-smtp-test-email': this.sendSMTPTestEmail, 'click a.js-toggle-hide-logo': this.toggleHideLogo, 'click button.js-save-layout': this.saveLayout, - 'click a.js-toggle-display-authentication-method': this.toggleDisplayAuthenticationMethod + 'click a.js-toggle-display-authentication-method': this.toggleDisplayAuthenticationMethod, }]; }, }).register('setting'); @@ -292,8 +289,6 @@ Template.selectAuthenticationMethod.helpers({ return Template.instance().authenticationMethods.get(); }, isSelected(match) { - console.log('this : ', this); - console.log('instance : ', Template.instance()); return Template.instance().data.authenticationMethod === match; - } -});
\ No newline at end of file + }, +}); |