diff options
author | Lauri Ojansivu <x@xet7.org> | 2018-11-16 21:26:07 +0200 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2018-11-16 21:26:07 +0200 |
commit | 033a9482fc7f765963f55e9dbd82d32b91970b74 (patch) | |
tree | 5a3313d72a57094edfdded9ae6888a81482ceec3 /client/components/settings/connectionMethod.js | |
parent | 73daf191ae15591bdf7fa71446a636460c482d6e (diff) | |
parent | 893329d9c6d33aa5572e268e8f951400a2446303 (diff) | |
download | wekan-033a9482fc7f765963f55e9dbd82d32b91970b74.tar.gz wekan-033a9482fc7f765963f55e9dbd82d32b91970b74.tar.bz2 wekan-033a9482fc7f765963f55e9dbd82d32b91970b74.zip |
Merge branch 'devel' of https://github.com/Akuket/wekan into Akuket-devel
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(); - }, -}); |