mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
removing Utils.getCurrentSetting() and use ReactiveCache directly
This commit is contained in:
parent
a8c071f04c
commit
875442f1ce
8 changed files with 17 additions and 17 deletions
|
|
@ -161,7 +161,7 @@ Template.userFormsLayout.events({
|
|||
},
|
||||
'DOMSubtreeModified #at-oidc'(event) {
|
||||
if (alreadyCheck <= 2) {
|
||||
let currSetting = Utils.getCurrentSetting();
|
||||
let currSetting = ReactiveCache.getCurrentSetting();
|
||||
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;
|
||||
|
|
@ -182,7 +182,7 @@ Template.userFormsLayout.events({
|
|||
'DOMSubtreeModified .at-form'(event) {
|
||||
if (alreadyCheck <= 2 && !isCheckDone) {
|
||||
if (document.getElementById("at-oidc") != null) {
|
||||
let currSetting = Utils.getCurrentSetting();
|
||||
let currSetting = ReactiveCache.getCurrentSetting();
|
||||
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue