forked from mirrors/amnezia-wg-easy
Supports displaying short links, for easy downloading on TVs and Android TVs
This commit is contained in:
parent
2ea37dd7ba
commit
0a33b1f7df
8 changed files with 45 additions and 3 deletions
|
@ -71,6 +71,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)'),
|
||||
|
@ -384,6 +385,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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue