From d17d12e719f488d4ce8d994c507315dc397e3c68 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Tue, 1 Aug 2023 11:55:04 +0200 Subject: [PATCH] The oidc button text is actually set in the DOM tree change later in the file --- client/components/main/layouts.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/client/components/main/layouts.js b/client/components/main/layouts.js index 1c2f66554..93991dbc8 100644 --- a/client/components/main/layouts.js +++ b/client/components/main/layouts.js @@ -25,19 +25,6 @@ Template.userFormsLayout.onCreated(function () { templateInstance.currentSetting = new ReactiveVar(); templateInstance.isLoading = new ReactiveVar(false); - Meteor.subscribe('setting', { - onReady() { - templateInstance.currentSetting.set(ReactiveCache.getCurrentSetting()); - let currSetting = templateInstance.currentSetting.curValue; - let oidcBtnElt = $("#at-oidc"); - if(currSetting && currSetting !== undefined && currSetting.oidcBtnText !== undefined && oidcBtnElt != null && oidcBtnElt != undefined){ - let htmlvalue = "" + currSetting.oidcBtnText; - oidcBtnElt.html(htmlvalue); - } - - return this.stop(); - }, - }); Meteor.call('isPasswordLoginEnabled', (_, result) => { if (result) { $('.at-pwd-form').show(); @@ -53,7 +40,6 @@ Template.userFormsLayout.onCreated(function () { }; Meteor.loginWithOidc(options); } - //else console.log("oidc redirect not set"); }); } Meteor.call('isDisableRegistration', (_, result) => {