mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
some bug fixes after master rebase
This commit is contained in:
parent
3c84773792
commit
a106e23ff8
9 changed files with 748 additions and 89 deletions
|
@ -1,7 +1,7 @@
|
|||
|
||||
import { appHost } from './apphost';
|
||||
import browser from '../scripts/browser';
|
||||
import { set, get } from '../scripts/settings/appSettings';
|
||||
import appSettings from '../scripts/settings/appSettings';
|
||||
import { Events } from 'jellyfin-apiclient';
|
||||
|
||||
function setLayout(instance, layout, selectedLayout) {
|
||||
|
@ -20,7 +20,7 @@ class LayoutManager {
|
|||
this.autoLayout();
|
||||
|
||||
if (save !== false) {
|
||||
set('layout', '');
|
||||
appSettings.set('layout', '');
|
||||
}
|
||||
} else {
|
||||
setLayout(this, 'mobile', layout);
|
||||
|
@ -28,7 +28,7 @@ class LayoutManager {
|
|||
setLayout(this, 'desktop', layout);
|
||||
|
||||
if (save !== false) {
|
||||
set('layout', layout);
|
||||
appSettings.set('layout', layout);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -36,7 +36,7 @@ class LayoutManager {
|
|||
}
|
||||
|
||||
getSavedLayout() {
|
||||
return get('layout');
|
||||
return appSettings.get('layout');
|
||||
}
|
||||
|
||||
autoLayout() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue