summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <DeepDiver1975@users.noreply.github.com>2016-04-25 23:02:23 +0200
committerThomas Müller <DeepDiver1975@users.noreply.github.com>2016-04-25 23:02:23 +0200
commitd8f327831e6f64658c50131c2e7344ee6fa0e86a (patch)
tree6f074308f49d122bad71ee1d2be0ee019dffc415
parent9ad30f9c92227d441f93d1e42f4fec09170e598e (diff)
parent3e26e1ec16a830765f950a12d261978f29b8dc95 (diff)
downloadnextcloud-server-d8f327831e6f64658c50131c2e7344ee6fa0e86a.tar.gz
nextcloud-server-d8f327831e6f64658c50131c2e7344ee6fa0e86a.zip
Merge pull request #23726 from owncloud/ldap-wizard-improve-status-indicator
LDAP Wizard: reset connection status indicator when switching LDAP co…
-rw-r--r--apps/user_ldap/js/wizard/view.js11
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'