[Admin panel / Settings / Layout] Customize OIDC button text

This commit is contained in:
Emile NDAGIJIMANA 2021-09-15 18:35:09 +02:00
parent 0c121a5894
commit 9defed2680
7 changed files with 25 additions and 1 deletions

View file

@ -28,6 +28,12 @@ Template.userFormsLayout.onCreated(function() {
Meteor.subscribe('setting', {
onReady() {
templateInstance.currentSetting.set(Settings.findOne());
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();
},
});