mirror of
https://github.com/directus/directus.git
synced 2026-02-04 18:44:54 -05:00
Set correct defaults for users/files
This commit is contained in:
@@ -188,25 +188,6 @@ export default defineComponent({
|
||||
];
|
||||
});
|
||||
|
||||
if (viewType.value === null) {
|
||||
viewType.value = 'cards';
|
||||
}
|
||||
|
||||
if (viewOptions.value === null && viewType.value === 'cards') {
|
||||
viewOptions.value = {
|
||||
icon: 'insert_drive_file',
|
||||
title: '{{title}}',
|
||||
subtitle: '{{type}} • {{filesize}}',
|
||||
size: 4,
|
||||
};
|
||||
}
|
||||
|
||||
if (viewQuery.value === null && viewType.value === 'cards') {
|
||||
viewQuery.value = {
|
||||
sort: '-uploaded_on',
|
||||
};
|
||||
}
|
||||
|
||||
const { moveToDialogActive, moveToFolder, moving, selectedFolder } = useMovetoFolder();
|
||||
|
||||
onMounted(() => emitter.on(Events.upload, refresh));
|
||||
|
||||
@@ -34,7 +34,14 @@
|
||||
</v-card>
|
||||
</v-dialog>
|
||||
|
||||
<v-button rounded icon class="action-batch" v-if="selection.length > 1" :to="batchLink" v-tooltip.bottom="$t('edit')">
|
||||
<v-button
|
||||
rounded
|
||||
icon
|
||||
class="action-batch"
|
||||
v-if="selection.length > 1"
|
||||
:to="batchLink"
|
||||
v-tooltip.bottom="$t('edit')"
|
||||
>
|
||||
<v-icon name="edit" />
|
||||
</v-button>
|
||||
|
||||
@@ -122,30 +129,12 @@ export default defineComponent({
|
||||
});
|
||||
}
|
||||
|
||||
return [
|
||||
...urlFilters,
|
||||
...filters.value,
|
||||
];
|
||||
return [...urlFilters, ...filters.value];
|
||||
}
|
||||
|
||||
return filters.value;
|
||||
});
|
||||
|
||||
if (viewType.value === null) {
|
||||
viewType.value = 'cards';
|
||||
}
|
||||
|
||||
if (viewOptions.value === null) {
|
||||
if (viewType.value === 'cards') {
|
||||
viewOptions.value = {
|
||||
icon: 'person',
|
||||
title: '{{first_name}} {{last_name}}',
|
||||
subtitle: '{{ title }}',
|
||||
size: 4
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
_filters,
|
||||
addNewLink,
|
||||
|
||||
Reference in New Issue
Block a user