diff --git a/lib/components/FilePicker/FileListRow.vue b/lib/components/FilePicker/FileListRow.vue index aa618a24..546286cf 100644 --- a/lib/components/FilePicker/FileListRow.vue +++ b/lib/components/FilePicker/FileListRow.vue @@ -56,7 +56,7 @@ const props = defineProps<{ /** The current node */ node: Node /** Whether the preview should be cropped */ - cropImagePreviews: Boolean + cropImagePreviews: boolean }>() const emit = defineEmits<{ diff --git a/lib/components/FilePicker/FilePreview.vue b/lib/components/FilePicker/FilePreview.vue index da495c85..f9324141 100644 --- a/lib/components/FilePicker/FilePreview.vue +++ b/lib/components/FilePicker/FilePreview.vue @@ -25,10 +25,10 @@ const fileListIconStyles = ref(fileListIconStylesModule) const props = defineProps<{ node: Node - cropImagePreviews: Boolean + cropImagePreviews: boolean }>() -const previewURL = computed(() => getPreviewURL(props.node, { cropPreview: cropImagePreviews.value })) +const previewURL = computed(() => getPreviewURL(props.node, { cropPreview: props.cropImagePreviews })) const isFile = computed(() => props.node.type === FileType.File) const canLoadPreview = ref(false) diff --git a/lib/composables/filesSettings.ts b/lib/composables/filesSettings.ts index dc9ea049..63462c09 100644 --- a/lib/composables/filesSettings.ts +++ b/lib/composables/filesSettings.ts @@ -19,12 +19,14 @@ * along with this program. If not, see . */ +import type { ComputedRef, Ref } from 'vue' + import { loadState } from '@nextcloud/initial-state' -import { computed, ref, type ComputedRef, type Ref } from 'vue' -import axios from '@nextcloud/axios' import { generateUrl } from '@nextcloud/router' import { toValue } from '@vueuse/core' -import { onMounted } from 'vue' +import { computed, onMounted, ref } from 'vue' + +import axios from '@nextcloud/axios' interface OCAFilesUserConfig { show_hidden: boolean