Minor UI improvements
This commit is contained in:
@@ -294,7 +294,7 @@
|
|||||||
v-model="editForm['exit-timeout']" />
|
v-model="editForm['exit-timeout']" />
|
||||||
<div id="exitTimeoutHelp" class="form-text">{{ $t('apps.exit_timeout_desc') }}</div>
|
<div id="exitTimeoutHelp" class="form-text">{{ $t('apps.exit_timeout_desc') }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="env-hint alert alert-info">
|
<div class="env-hint alert alert-info overflow-auto">
|
||||||
<div class="form-text">
|
<div class="form-text">
|
||||||
<h4>{{ $t('apps.env_vars_about') }}</h4>
|
<h4>{{ $t('apps.env_vars_about') }}</h4>
|
||||||
{{ $t('apps.env_vars_desc') }}
|
{{ $t('apps.env_vars_desc') }}
|
||||||
|
|||||||
@@ -69,7 +69,11 @@
|
|||||||
this.success = true;
|
this.success = true;
|
||||||
location.href = './';
|
location.href = './';
|
||||||
} else {
|
} else {
|
||||||
throw new Error(`Server returned ${res.status}`);
|
if (res.status === 401) {
|
||||||
|
throw new Error('Please check your username and password')
|
||||||
|
} else {
|
||||||
|
throw new Error(`Server returned ${res.status}`);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}).catch((e) => {
|
}).catch((e) => {
|
||||||
this.error = `Login failed: ${e.message}`;
|
this.error = `Login failed: ${e.message}`;
|
||||||
|
|||||||
Reference in New Issue
Block a user