mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
[Admin panel / Settings / Layout] Customize OIDC button text
This commit is contained in:
parent
0c121a5894
commit
9defed2680
7 changed files with 25 additions and 1 deletions
|
|
@ -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();
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue