virtual sample : disable compare mode on dialog close
This commit is contained in:
parent
76b67e4756
commit
21714e1808
1 changed files with 4 additions and 0 deletions
|
|
@ -114,6 +114,7 @@ const {
|
||||||
step,
|
step,
|
||||||
isLoopAnimationEnabled,
|
isLoopAnimationEnabled,
|
||||||
isDownloadTriggered,
|
isDownloadTriggered,
|
||||||
|
isCompareModeEnabled,
|
||||||
} = storeToRefs(useVirtualSampleStore());
|
} = storeToRefs(useVirtualSampleStore());
|
||||||
|
|
||||||
const { isCommentsOpen, isCommentPanelEnabled, activeTracks, openedFile } =
|
const { isCommentsOpen, isCommentPanelEnabled, activeTracks, openedFile } =
|
||||||
|
|
@ -132,6 +133,9 @@ watch(isOpen, (newValue) => {
|
||||||
router.push({ name: route.name });
|
router.push({ name: route.name });
|
||||||
openedFile.value = null;
|
openedFile.value = null;
|
||||||
activeTracks.value = [];
|
activeTracks.value = [];
|
||||||
|
if (!newValue) {
|
||||||
|
isCompareModeEnabled.value = false;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const downloadText = computed(() => {
|
const downloadText = computed(() => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue