mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Fix limit/filter/search reactivty for export (#13220)
This commit is contained in:
@@ -284,6 +284,8 @@ const exportSettings = reactive({
|
||||
watch(
|
||||
() => props.layoutQuery,
|
||||
() => {
|
||||
exportSettings.limit = props.layoutQuery?.limit ?? 25;
|
||||
|
||||
if (props.layoutQuery?.fields) {
|
||||
exportSettings.fields = props.layoutQuery?.fields;
|
||||
}
|
||||
@@ -299,6 +301,15 @@ watch(
|
||||
{ immediate: true }
|
||||
);
|
||||
|
||||
watch(
|
||||
[() => props.filter, () => props.search],
|
||||
([filter, search]) => {
|
||||
exportSettings.filter = filter;
|
||||
exportSettings.search = search;
|
||||
},
|
||||
{ immediate: true }
|
||||
);
|
||||
|
||||
const format = ref('csv');
|
||||
const location = ref('download');
|
||||
const folder = ref<string>();
|
||||
|
||||
Reference in New Issue
Block a user