mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-27 08:44:04 +00:00
Compare commits
17 commits
3e4f6be9d8
...
5c080d8324
Author | SHA1 | Date | |
---|---|---|---|
|
5c080d8324 | ||
|
aff6a5bf7f | ||
|
821a70f2f3 | ||
|
144794b770 | ||
|
60271ffa0b | ||
|
bb7c098aec | ||
|
f6e7da67fd | ||
|
47fed3eb99 | ||
|
722ac84f99 | ||
|
af45fa844e | ||
|
8fa40d02aa | ||
|
4cb9406a2e | ||
|
a50209b6c8 | ||
|
1ceb8e98d6 | ||
|
be461a0efd | ||
|
deaec80cb0 | ||
|
6412514cae |
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 v-if="config.showLocaleSelector" class="language-selector">
|
||||
<span 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,6 +734,10 @@ 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
|
||||
|
@ -742,10 +746,6 @@ 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