mirror of
https://github.com/netzbegruenung/user_saml.git
synced 2024-05-02 01:04:51 +02:00
Use callback
Otherwise the page is already reloaded while the appsettings are not yet stored. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
parent
00c87f4f81
commit
6ac3ab47ca
|
@ -11,8 +11,7 @@
|
|||
return;
|
||||
}
|
||||
|
||||
OC.AppConfig.setValue('user_saml', 'type', 'environment-variable');
|
||||
location.reload();
|
||||
OCP.AppConfig.setValue('user_saml', 'type', 'environment-variable', {success: function() {location.reload();}});
|
||||
},
|
||||
|
||||
chooseSaml: function() {
|
||||
|
@ -21,8 +20,7 @@
|
|||
return;
|
||||
}
|
||||
|
||||
OC.AppConfig.setValue('user_saml', 'type', 'saml');
|
||||
location.reload();
|
||||
OCP.AppConfig.setValue('user_saml', 'type', 'saml', {success: function() {location.reload();}});
|
||||
},
|
||||
|
||||
setSamlConfigValue: function(category, setting, value) {
|
||||
|
|
Loading…
Reference in a new issue