feat: add pinnedFlowchart Pinia store

This commit is contained in:
2026-05-25 00:01:50 -06:00
parent 46c3176cd2
commit ad18800ca6

View File

@@ -0,0 +1,18 @@
import { defineStore } from "pinia"
export const usePinnedFlowchartStore = defineStore("pinnedFlowchart", () => {
const isPinned = ref(false)
const mermaidCode = ref("")
function pin(code: string) {
mermaidCode.value = code
isPinned.value = true
}
function unpin() {
isPinned.value = false
mermaidCode.value = ""
}
return { isPinned, mermaidCode, pin, unpin }
})