mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-03-30 16:40:55 +03:00
Sidepanel mode and card size is now configurable and can be set from the about dialog (temp location)
This commit is contained in:
@@ -22,6 +22,8 @@ export class PostsService implements CanActivate {
|
||||
handShakeComplete = false;
|
||||
THEMES_CONFIG = THEMES_CONFIG;
|
||||
theme;
|
||||
card_size = 'medium';
|
||||
sidepanel_mode = 'over';
|
||||
settings_changed = new BehaviorSubject<boolean>(false);
|
||||
auth_token = '4241b401-7236-493e-92b5-b72696b9d853';
|
||||
session_id = null;
|
||||
@@ -102,6 +104,14 @@ export class PostsService implements CanActivate {
|
||||
this.reload_config.subscribe(yes_reload => {
|
||||
if (yes_reload) { this.reloadConfig(); }
|
||||
});
|
||||
|
||||
if (localStorage.getItem('sidepanel_mode')) {
|
||||
this.sidepanel_mode = localStorage.getItem('sidepanel_mode');
|
||||
}
|
||||
|
||||
if (localStorage.getItem('card_size')) {
|
||||
this.card_size = localStorage.getItem('card_size');
|
||||
}
|
||||
}
|
||||
canActivate(route, state): Promise<boolean> {
|
||||
return new Promise(resolve => {
|
||||
|
||||
Reference in New Issue
Block a user