diff options
author | Lauri Ojansivu <x@xet7.org> | 2018-12-21 22:24:21 +0200 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2018-12-21 22:24:21 +0200 |
commit | 5b227b2b4f65f4af2fd9328f8336111277699d71 (patch) | |
tree | 362622caadaa397d13a4947718e30692c79d26bc /client/components/settings/connectionMethod.js | |
parent | 16fe2be04d75a968a7a79db330a618a9062522f0 (diff) | |
parent | 96f33e4052f57706c91a1780a2ad7d77da347021 (diff) | |
download | wekan-5b227b2b4f65f4af2fd9328f8336111277699d71.tar.gz wekan-5b227b2b4f65f4af2fd9328f8336111277699d71.tar.bz2 wekan-5b227b2b4f65f4af2fd9328f8336111277699d71.zip |
Merge branch 'edge' into meteor-1.8
Diffstat (limited to 'client/components/settings/connectionMethod.js')
-rw-r--r-- | client/components/settings/connectionMethod.js | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/client/components/settings/connectionMethod.js b/client/components/settings/connectionMethod.js deleted file mode 100644 index 9fe8f382..00000000 --- a/client/components/settings/connectionMethod.js +++ /dev/null @@ -1,34 +0,0 @@ -Template.connectionMethod.onCreated(function() { - this.authenticationMethods = new ReactiveVar([]); - - Meteor.call('getAuthenticationsEnabled', (_, result) => { - if (result) { - // 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]})), - ]); - } - - // If only the default authentication available, hides the select boxe - const content = $('.at-form-authentication'); - if (!(this.authenticationMethods.get().length > 1)) { - content.hide(); - } else { - content.show(); - } - }); -}); - -Template.connectionMethod.onRendered(() => { - // Moves the select boxe in the first place of the at-pwd-form div - $('.at-form-authentication').detach().prependTo('.at-pwd-form'); -}); - -Template.connectionMethod.helpers({ - authentications() { - return Template.instance().authenticationMethods.get(); - }, -}); |