Introduced TempStore to Store SearchStrings and Selections etc

This commit is contained in:
2025-02-03 11:05:35 +01:00
parent f4b0964e25
commit c207329a3e
2 changed files with 46 additions and 2 deletions

24
stores/temp.js Normal file
View File

@@ -0,0 +1,24 @@
import {defineStore} from 'pinia'
// @ts-ignore
export const useTempStore = defineStore('temp', () => {
const searchStrings = ref({})
function modifySearchString(type,input) {
searchStrings.value[type] = input
}
function clearSearchString(type) {
searchStrings.value[type] = ""
}
return {
searchStrings,
modifySearchString,
clearSearchString
}
})