Compare commits

..

17 commits

Author SHA1 Message Date
Wampie Driessen
5c080d8324
Merge aff6a5bf7f into 8a432ac937 2024-11-12 18:00:24 +00:00
Wampie Driessen
aff6a5bf7f Merge branch 'master' into feature/locale_on_status_page 2023-10-16 09:43:08 +02:00
Wampie Driessen
821a70f2f3
Merge branch 'master' into feature/locale_on_status_page 2023-09-28 09:02:42 +02:00
Wampie Driessen
144794b770 Fix linter warning 2023-09-13 11:35:52 +02:00
Wampie Driessen
60271ffa0b Convert migration to knex migration 2023-09-13 11:32:55 +02:00
Wampie Driessen
bb7c098aec Merge branch 'master' into feature/locale_on_status_page 2023-09-13 11:32:00 +02:00
Wampie Driessen
f6e7da67fd
Merge branch 'master' into feature/locale_on_status_page 2023-08-10 11:50:44 +02:00
Wampie Driessen
47fed3eb99 Merge branch 'master' into feature/locale_on_status_page 2023-08-10 11:49:21 +02:00
Wampie Driessen
722ac84f99
Merge branch 'master' into feature/locale_on_status_page 2023-08-07 10:47:07 +02:00
Wampie Driessen
af45fa844e
Update src/mixins/lang.js 2023-08-05 18:47:57 +02:00
Wampie Driessen
8fa40d02aa
Update src/mixins/lang.js 2023-08-05 18:47:52 +02:00
Wampie Driessen
4cb9406a2e
Merge branch 'master' into feature/locale_on_status_page 2023-08-05 17:56:11 +02:00
Wampie Driessen
a50209b6c8
Update src/mixins/lang.js
Co-authored-by: Matthew Nickson <mnickson@sidingsmedia.com>
2023-08-05 17:55:27 +02:00
Wampie Driessen
1ceb8e98d6
Merge branch 'master' into feature/locale_on_status_page 2023-08-04 12:21:33 +02:00
Wampie Driessen
be461a0efd Fix linter issues 2023-08-03 16:43:59 +02:00
Wampie Driessen
deaec80cb0 Allow a 'default locale' and locale switcher on status pages 2023-08-03 16:32:52 +02:00
Wampie Driessen
6412514cae Allow a 'default locale' and locale switcher on status pages 2023-08-03 16:30:43 +02:00

View file

@ -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";