mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-02 18:51:27 +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:
@@ -16,11 +16,13 @@ export class AboutDialogComponent implements OnInit {
|
||||
checking_for_updates = true;
|
||||
|
||||
current_version_tag = CURRENT_VERSION;
|
||||
sidepanel_mode = this.postsService.sidepanel_mode;
|
||||
card_size = this.postsService.card_size;
|
||||
|
||||
constructor(private postsService: PostsService) { }
|
||||
|
||||
ngOnInit(): void {
|
||||
this.getLatestGithubRelease()
|
||||
this.getLatestGithubRelease();
|
||||
}
|
||||
|
||||
getLatestGithubRelease() {
|
||||
@@ -30,4 +32,14 @@ export class AboutDialogComponent implements OnInit {
|
||||
});
|
||||
}
|
||||
|
||||
sidePanelModeChanged(new_mode) {
|
||||
localStorage.setItem('sidepanel_mode', new_mode);
|
||||
this.postsService.sidepanel_mode = new_mode;
|
||||
}
|
||||
|
||||
cardSizeOptionChanged(new_size) {
|
||||
localStorage.setItem('card_size', new_size);
|
||||
this.postsService.card_size = new_size;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user