Merge branch 'master' into remember-me

This commit is contained in:
Philip H.
2024-08-16 19:25:36 +02:00
committed by GitHub
13 changed files with 72 additions and 10 deletions
+9
View File
@@ -73,6 +73,7 @@ new Vue({
uiTrafficStats: false,
uiChartType: 0,
uiShowLinks: false,
uiShowCharts: localStorage.getItem('uiShowCharts') === '1',
uiTheme: localStorage.theme || 'auto',
prefersDarkScheme: window.matchMedia('(prefers-color-scheme: dark)'),
@@ -392,6 +393,14 @@ new Vue({
this.uiChartType = 0;
});
this.api.getUIShowLinks()
.then((res) => {
this.uiShowLinks = res;
})
.catch(() => {
this.uiShowLinks = false;
});
Promise.resolve().then(async () => {
const lang = await this.api.getLang();
if (lang !== localStorage.getItem('lang') && i18n.availableLocales.includes(lang)) {