aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/js/wizard
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2016-04-01 12:11:47 +0200
committerMorris Jobke <hey@morrisjobke.de>2016-04-25 16:24:44 +0200
commit3e26e1ec16a830765f950a12d261978f29b8dc95 (patch)
tree30ae3ad81f77e40850ff78fd8597e287ef63d71a /apps/user_ldap/js/wizard
parent632159613447796b5bb7dbe3a17c194573b18b4a (diff)
downloadnextcloud-server-3e26e1ec16a830765f950a12d261978f29b8dc95.tar.gz
nextcloud-server-3e26e1ec16a830765f950a12d261978f29b8dc95.zip
LDAP Wizard: reset connection status indicator when switching LDAP config
Diffstat (limited to 'apps/user_ldap/js/wizard')
-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'