feat: port namespace store to pinia
This commit is contained in:
parent
9474240cb9
commit
093ab766d4
21 changed files with 214 additions and 166 deletions
|
|
@ -1,11 +1,11 @@
|
|||
import {ref, computed} from 'vue'
|
||||
import {useStore} from '@/store'
|
||||
import {useNamespaceStore} from '@/stores/namespaces'
|
||||
|
||||
export function useNameSpaceSearch() {
|
||||
export function useNamespaceSearch() {
|
||||
const query = ref('')
|
||||
|
||||
const store = useStore()
|
||||
const namespaces = computed(() => store.getters['namespaces/searchNamespace'](query.value))
|
||||
const namespaceStore = useNamespaceStore()
|
||||
const namespaces = computed(() => namespaceStore.searchNamespace(query.value))
|
||||
|
||||
function findNamespaces(newQuery: string) {
|
||||
query.value = newQuery
|
||||
|
|
|
|||
Reference in a new issue