mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 23:04:04 +00:00
Compare commits
10 commits
5c080d8324
...
3e4f6be9d8
Author | SHA1 | Date | |
---|---|---|---|
|
3e4f6be9d8 | ||
|
1557f58118 | ||
|
836199dea5 | ||
|
b75580003f | ||
|
c3b4ad85e5 | ||
|
7226686bde | ||
|
24968f331b | ||
|
995b115d27 | ||
|
a483ea6a8f | ||
|
457a3e75dd |
1 changed files with 5 additions and 5 deletions
|
@ -166,7 +166,7 @@
|
|||
<Editable v-model="config.title" class="title" tag="span" :contenteditable="editMode" :noNL="true" />
|
||||
|
||||
<!-- Locale Selector -->
|
||||
<span class="language-selector">
|
||||
<span v-if="config.showLocaleSelector" class="language-selector">
|
||||
<select v-model="$root.language" class="form-select">
|
||||
<option v-for="locale in $i18n.availableLocales" :key="locale" :value="locale" :text="$i18n.messages[locale].languageName"></option>
|
||||
</select>
|
||||
|
@ -734,10 +734,6 @@ export default {
|
|||
this.maintenanceList = res.data.maintenanceList;
|
||||
this.$root.publicGroupList = res.data.publicGroupList;
|
||||
|
||||
if (!localStorage.locale && this.config.defaultLocale) {
|
||||
this.$root.changeCurrentPageLang(this.config.defaultLocale);
|
||||
}
|
||||
|
||||
this.loading = false;
|
||||
|
||||
// Configure auto-refresh loop
|
||||
|
@ -746,6 +742,10 @@ export default {
|
|||
}, (this.config.autoRefreshInterval + 10) * 1000);
|
||||
|
||||
this.updateUpdateTimer();
|
||||
|
||||
if (!localStorage.locale && this.config.defaultLocale) {
|
||||
this.$root.changeCurrentPageLang(this.config.defaultLocale);
|
||||
}
|
||||
}).catch( function (error) {
|
||||
if (error.response.status === 404) {
|
||||
location.href = "/page-not-found";
|
||||
|
|
Loading…
Reference in a new issue