Commit 065ced1f authored by Ronan Abhamon's avatar Ronan Abhamon

feat(ui/views/App/Main/Dialogs/ManageAccounts): do not display warning if...

feat(ui/views/App/Main/Dialogs/ManageAccounts): do not display warning if registration is not enabled
parent 543d6be7
......@@ -64,7 +64,12 @@ DialogPlus {
model: AccountSettingsModel.accounts
iconRole: (function (data) {
var proxyConfig = data.proxyConfig
return proxyConfig && AccountSettingsModel.getProxyConfigDescription(proxyConfig).registrationState !== AccountSettingsModel.RegistrationStateRegistered
if (!proxyConfig) {
return ''
}
var description = AccountSettingsModel.getProxyConfigDescription(proxyConfig)
return description.registerEnabled && description.registrationState !== AccountSettingsModel.RegistrationStateRegistered
? 'generic_error'
: ''
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment