refactor: asset navbar (#25476)

This commit is contained in:
Jason Rasmussen
2026-01-23 14:06:19 -05:00
committed by GitHub
parent d942e7212a
commit af51a11b1b
5 changed files with 70 additions and 77 deletions
@@ -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();