mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
refactor: asset navbar (#25476)
This commit is contained in:
@@ -5,6 +5,7 @@ const isShowDetailPanel = new PersistedLocalStorage<boolean>('asset-viewer-state
|
||||
export class AssetViewerManager {
|
||||
isShowActivityPanel = $state(false);
|
||||
isPlayingMotionPhoto = $state(false);
|
||||
isShowEditor = $state(false);
|
||||
|
||||
get isShowDetailPanel() {
|
||||
return isShowDetailPanel.current;
|
||||
@@ -31,6 +32,15 @@ export class AssetViewerManager {
|
||||
closeDetailPanel() {
|
||||
this.isShowDetailPanel = false;
|
||||
}
|
||||
|
||||
openEditor() {
|
||||
this.closeActivityPanel();
|
||||
this.isShowEditor = true;
|
||||
}
|
||||
|
||||
closeEditor() {
|
||||
this.isShowEditor = false;
|
||||
}
|
||||
}
|
||||
|
||||
export const assetViewerManager = new AssetViewerManager();
|
||||
|
||||
Reference in New Issue
Block a user