Minor UI improvements

This commit is contained in:
Yukino Song
2024-08-30 06:27:13 +08:00
parent 652661ea50
commit 1c217d95f0
2 changed files with 6 additions and 2 deletions

View File

@@ -294,7 +294,7 @@
v-model="editForm['exit-timeout']" />
<div id="exitTimeoutHelp" class="form-text">{{ $t('apps.exit_timeout_desc') }}</div>
</div>
<div class="env-hint alert alert-info">
<div class="env-hint alert alert-info overflow-auto">
<div class="form-text">
<h4>{{ $t('apps.env_vars_about') }}</h4>
{{ $t('apps.env_vars_desc') }}

View File

@@ -69,7 +69,11 @@
this.success = true;
location.href = './';
} 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) => {
this.error = `Login failed: ${e.message}`;