Fix emtpy ui on new instances

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2018-07-10 15:13:08 +02:00 committed by Bjoern Schiessle
parent 174234a14e
commit ba2e04f7b8
No known key found for this signature in database
GPG key ID: 2378A753E2BF04F6

View file

@ -19,8 +19,8 @@
if (data.ocs.data.data !== '') {
OCA.User_SAML.Admin.providerIds = data.ocs.data.data;
OCA.User_SAML.Admin.currentConfig = OCA.User_SAML.Admin.providerIds.split(',').sort()[0];
callback();
}
callback();
});
},
chooseEnv: function() {
@ -117,7 +117,7 @@ $(function() {
$('[data-js="remove-idp"]').addClass('hidden');
}
// Hide depending on the setup state
if(type === '') {
if(type !== 'environment-variable' && type !== 'saml') {
$('#user-saml-choose-type').removeClass('hidden');
} else {
$('#user-saml-global').removeClass('hidden');