This commit is contained in:
isUnknown 2024-12-16 16:27:21 +01:00
parent ab60a50437
commit 64af50816b
3 changed files with 30 additions and 2 deletions

View file

@ -5,11 +5,12 @@ import { usePageStore } from "./page";
export const useVirtualSampleStore = defineStore("virtual-sample", () => {
const activeTab = ref("dynamic");
const currentFile = ref(null);
const isLoopAnimationEnabled = ref(false);
const { page } = usePageStore();
const step = page.steps.find((step) => step.id === "virtualSample");
watch(activeTab, () => (currentFile.value = null));
return { activeTab, currentFile, step };
return { activeTab, currentFile, step, isLoopAnimationEnabled };
});