|
|
@ -8,9 +8,8 @@ export function useViewFilters( |
|
|
|
parentId?: string, |
|
|
|
parentId?: string, |
|
|
|
autoApply?: ComputedRef<boolean>, |
|
|
|
autoApply?: ComputedRef<boolean>, |
|
|
|
reloadData?: () => void, |
|
|
|
reloadData?: () => void, |
|
|
|
shared = false |
|
|
|
shared = false, |
|
|
|
) { |
|
|
|
) { |
|
|
|
|
|
|
|
|
|
|
|
// todo: update swagger
|
|
|
|
// todo: update swagger
|
|
|
|
const filters = ref<(FilterType & { status?: 'update' | 'delete' | 'create'; parentId?: string })[]>([]) |
|
|
|
const filters = ref<(FilterType & { status?: 'update' | 'delete' | 'create'; parentId?: string })[]>([]) |
|
|
|
|
|
|
|
|
|
|
@ -45,7 +44,6 @@ export function useViewFilters( |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const deleteFilter = async (filter: FilterType & { status: string }, i: number) => { |
|
|
|
const deleteFilter = async (filter: FilterType & { status: string }, i: number) => { |
|
|
|
|
|
|
|
|
|
|
|
if (shared || !isUIAllowed('filterSync')) { |
|
|
|
if (shared || !isUIAllowed('filterSync')) { |
|
|
|
const _filters = unref(filters.value) |
|
|
|
const _filters = unref(filters.value) |
|
|
|
_filters.splice(i, 1) |
|
|
|
_filters.splice(i, 1) |
|
|
|