diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2016-04-01 13:11:47 +0300 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-04-25 17:24:44 +0300 |
commit | 3e26e1ec16a830765f950a12d261978f29b8dc95 (patch) | |
tree | 30ae3ad81f77e40850ff78fd8597e287ef63d71a /apps/user_ldap/js | |
parent | 632159613447796b5bb7dbe3a17c194573b18b4a (diff) |
LDAP Wizard: reset connection status indicator when switching LDAP config
Diffstat (limited to 'apps/user_ldap/js')
-rw-r--r-- | apps/user_ldap/js/wizard/view.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/user_ldap/js/wizard/view.js b/apps/user_ldap/js/wizard/view.js index 39133554121..9c7e2132dc6 100644 --- a/apps/user_ldap/js/wizard/view.js +++ b/apps/user_ldap/js/wizard/view.js @@ -24,6 +24,8 @@ OCA = OCA || {}; STATUS_INCOMPLETE: 1, /** @constant {number} */ STATUS_SUCCESS: 2, + /** @constant {number} */ + STATUS_UNTESTED: 3, /** * initializes the instance. Always call it after creating the instance. @@ -210,6 +212,7 @@ OCA = OCA || {}; * @listens ConfigModel#configLoaded */ onConfigLoaded: function(view) { + view._updateStatusIndicator(view.STATUS_UNTESTED); view.basicStatusCheck(view); view.functionalityCheck(); }, @@ -370,6 +373,14 @@ OCA = OCA || {}; var $indicatorLight = $('.ldap_config_state_indicator_sign'); switch(state) { + case this.STATUS_UNTESTED: + $indicator.text(t('user_ldap', + 'Testing configuration…' + )); + $indicator.addClass('ldap_grey'); + $indicatorLight.removeClass('error'); + $indicatorLight.removeClass('success'); + break; case this.STATUS_ERROR: $indicator.text(t('user_ldap', 'Configuration incorrect' |