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/main/layouts.js | 6 +++--- client/components/settings/connectionMethod.js | 2 +- client/components/settings/peopleBody.js | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'client') diff --git a/client/components/main/layouts.js b/client/components/main/layouts.js index 6d1f95d4..393f890b 100644 --- a/client/components/main/layouts.js +++ b/client/components/main/layouts.js @@ -7,7 +7,7 @@ const i18nTagToT9n = (i18nTag) => { }; const validator = { - set: function(obj, prop, value) { + set(obj, prop, value) { if (prop === 'state' && value !== 'signIn') { $('.at-form-authentication').hide(); } else if (prop === 'state' && value === 'signIn') { @@ -17,7 +17,7 @@ const validator = { obj[prop] = value; // Indicate success return true; - } + }, }; Template.userFormsLayout.onRendered(() => { @@ -82,7 +82,7 @@ Template.userFormsLayout.events({ }); }, 'click #at-btn'(event) { - /* All authentication method can be managed/called here. + /* All authentication method can be managed/called here. !! DON'T FORGET to correctly fill the fields of the user during its creation if necessary authenticationMethod : String !! */ const authenticationMethodSelected = $('.select-authentication').val(); diff --git a/client/components/settings/connectionMethod.js b/client/components/settings/connectionMethod.js index 3d5cfd76..9fe8f382 100644 --- a/client/components/settings/connectionMethod.js +++ b/client/components/settings/connectionMethod.js @@ -31,4 +31,4 @@ Template.connectionMethod.helpers({ authentications() { return Template.instance().authenticationMethods.get(); }, -}); \ No newline at end of file +}); 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 From 5e9bf61d3f97befaa240be015755af96034f1859 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Wed, 10 Oct 2018 00:11:32 +0300 Subject: - Use existing translation of "Back". Thanks to xet7 ! --- client/components/rules/ruleDetails.jade | 4 +--- client/components/rules/rulesActions.jade | 2 +- client/components/rules/rulesTriggers.jade | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) (limited to 'client') diff --git a/client/components/rules/ruleDetails.jade b/client/components/rules/ruleDetails.jade index 1f351357..7183cf96 100644 --- a/client/components/rules/ruleDetails.jade +++ b/client/components/rules/ruleDetails.jade @@ -17,6 +17,4 @@ template(name="ruleDetails") div.rules-back button.js-goback i.fa.fa-chevron-left - | {{{_ 'r-back'}}} - - \ No newline at end of file + | {{{_ 'back'}}} diff --git a/client/components/rules/rulesActions.jade b/client/components/rules/rulesActions.jade index 4bcff769..3ac04e1c 100644 --- a/client/components/rules/rulesActions.jade +++ b/client/components/rules/rulesActions.jade @@ -26,4 +26,4 @@ template(name="rulesActions") div.rules-back button.js-goback i.fa.fa-chevron-left - | {{{_ 'r-back'}}} \ No newline at end of file + | {{{_ 'back'}}} diff --git a/client/components/rules/rulesTriggers.jade b/client/components/rules/rulesTriggers.jade index 01c0cad5..79d9d98e 100644 --- a/client/components/rules/rulesTriggers.jade +++ b/client/components/rules/rulesTriggers.jade @@ -22,4 +22,4 @@ template(name="rulesTriggers") div.rules-back button.js-goback i.fa.fa-chevron-left - | {{{_ 'r-back'}}} \ No newline at end of file + | {{{_ 'back'}}} -- cgit v1.2.3-1-g7c22 From 232685919ff35e756e044db9782bbbca5077b09b Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Sat, 13 Oct 2018 23:27:40 +0300 Subject: - Fix vertical text for swimlanes in IE11 Thanks to tomodwyer ! Closes #1798 --- client/components/swimlanes/swimlanes.styl | 1 + 1 file changed, 1 insertion(+) (limited to 'client') diff --git a/client/components/swimlanes/swimlanes.styl b/client/components/swimlanes/swimlanes.styl index dce298b0..abcc90d4 100644 --- a/client/components/swimlanes/swimlanes.styl +++ b/client/components/swimlanes/swimlanes.styl @@ -32,6 +32,7 @@ border-bottom: 1px solid #CCC .swimlane-header + -ms-writing-mode: tb-rl; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 14px; -- cgit v1.2.3-1-g7c22