mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 13:37:09 -04:00
The oidc button text is actually set in the DOM tree change later in the file
This commit is contained in:
parent
a5f918c670
commit
d17d12e719
1 changed files with 0 additions and 14 deletions
|
@ -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 = "<i class='fa fa-oidc'></i>" + 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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue