summaryrefslogtreecommitdiffstats
path: root/client/components/settings/connectionMethod.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2018-11-17 14:51:22 +0200
committerLauri Ojansivu <x@xet7.org>2018-11-17 14:51:22 +0200
commitb8b1512e266a24d7e7e13cd70dd116b5ba35afee (patch)
tree6eceac9c10576d9324beba89cf8d19bf48d4511a /client/components/settings/connectionMethod.js
parent3300c69a039b3a4aa54c21340104a231cf2e80b1 (diff)
parent960b33c3d91f2d3c943b8d889292ac4e7407ddcd (diff)
downloadwekan-b8b1512e266a24d7e7e13cd70dd116b5ba35afee.tar.gz
wekan-b8b1512e266a24d7e7e13cd70dd116b5ba35afee.tar.bz2
wekan-b8b1512e266a24d7e7e13cd70dd116b5ba35afee.zip
Merge branch 'edge' into meteor-1.8
Diffstat (limited to 'client/components/settings/connectionMethod.js')
-rw-r--r--client/components/settings/connectionMethod.js34
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();
- },
-});