Bläddra i källkod

The oidc button text is actually set in the DOM tree change later in the file

Johannes Zellner 1 år sedan
förälder
incheckning
d17d12e719
1 ändrade filer med 0 tillägg och 14 borttagningar
  1. 0 14
      client/components/main/layouts.js

+ 0 - 14
client/components/main/layouts.js

@@ -25,19 +25,6 @@ Template.userFormsLayout.onCreated(function () {
   templateInstance.currentSetting = new ReactiveVar();
   templateInstance.currentSetting = new ReactiveVar();
   templateInstance.isLoading = new ReactiveVar(false);
   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 = "<i class='fa fa-oidc'></i>" + currSetting.oidcBtnText;
-        oidcBtnElt.html(htmlvalue);
-      }
-
-      return this.stop();
-    },
-  });
   Meteor.call('isPasswordLoginEnabled', (_, result) => {
   Meteor.call('isPasswordLoginEnabled', (_, result) => {
     if (result) {
     if (result) {
       $('.at-pwd-form').show();
       $('.at-pwd-form').show();
@@ -53,7 +40,6 @@ Template.userFormsLayout.onCreated(function () {
           };
           };
           Meteor.loginWithOidc(options);
           Meteor.loginWithOidc(options);
         }
         }
-        //else console.log("oidc redirect not set");
       });
       });
   }
   }
   Meteor.call('isDisableRegistration', (_, result) => {
   Meteor.call('isDisableRegistration', (_, result) => {