From 2d69abcd1510500233f53b1fffb2cf878ad8ea25 Mon Sep 17 00:00:00 2001 From: John Marsden Date: Fri, 13 Dec 2024 22:44:04 -0500 Subject: [PATCH] Use layoutStore instead of this.$store --- frontend/src/components/prompts/FileList.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/prompts/FileList.vue b/frontend/src/components/prompts/FileList.vue index b276ce62..95f5bb8c 100644 --- a/frontend/src/components/prompts/FileList.vue +++ b/frontend/src/components/prompts/FileList.vue @@ -28,6 +28,7 @@ import { mapState } from "pinia"; import { useAuthStore } from "@/stores/auth"; import { useFileStore } from "@/stores/file"; +import { useLayoutStore } from "@/stores/layout"; import url from "@/utils/url"; import { files } from "@/api"; @@ -49,6 +50,7 @@ export default { computed: { ...mapState(useAuthStore, ["user"]), ...mapState(useFileStore, ["req"]), + ...mapState(useLayoutStore, ["showHover"]), nav() { return decodeURIComponent(this.current); }, @@ -139,7 +141,7 @@ export default { this.$emit("update:selected", this.selected); }, createDir: async function () { - this.$store.commit("showHover", { + this.showHover({ prompt: "newDir", action: null, confirm: null,