mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Fix preset layouts not persisting. (#13821)
* preset layout persisting * persist more * removed unused type
This commit is contained in:
@@ -154,7 +154,7 @@ import SearchInput from '@/views/private/components/search-input';
|
||||
import { usePermissionsStore, useUserStore, usePresetsStore } from '@/stores';
|
||||
import DrawerBatch from '@/views/private/components/drawer-batch';
|
||||
import { getLayouts } from '@/layouts';
|
||||
import { Filter } from '@directus/shared/types';
|
||||
import usePreset from '@/composables/use-preset';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'ContentCollection',
|
||||
@@ -169,11 +169,8 @@ export default defineComponent({
|
||||
setup() {
|
||||
const layout = ref('tabular');
|
||||
const collection = ref('directus_presets');
|
||||
const layoutOptions = ref<Record<string, any>>({});
|
||||
const layoutQuery = ref<Record<string, any>>({});
|
||||
const filter = ref<Filter | null>(null);
|
||||
const search = ref<string | null>(null);
|
||||
const refreshInterval = ref<number | null>(null);
|
||||
const { layoutOptions, layoutQuery, filter, search, refreshInterval } = usePreset(collection);
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const { layouts } = getLayouts();
|
||||
|
||||
Reference in New Issue
Block a user