diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-07-10 16:13:08 +0300 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2018-08-03 13:42:09 +0300 |
commit | ba2e04f7b814937c9b20b28ddad268bc0fd233e3 (patch) | |
tree | 88c971e45c2ad2c425a4f4c45b2e68689c110d1a /js/admin.js | |
parent | 174234a14e3082042d85dc03755c4a48747fe490 (diff) |
Fix emtpy ui on new instances
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'js/admin.js')
-rw-r--r-- | js/admin.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/admin.js b/js/admin.js index 9a8d24ec..74e2d068 100644 --- a/js/admin.js +++ b/js/admin.js @@ -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'); |