Skip to content

Commit

Permalink
Fix download button missing on detail field preview modal
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarpsvo committed Jan 11, 2025
1 parent d4207ee commit f834c0f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
10 changes: 5 additions & 5 deletions dist/js/tool.js

Large diffs are not rendered by default.

14 changes: 12 additions & 2 deletions resources/js/fields/DetailField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interface Props {
index: number
}
defineProps<Props>()
const props = defineProps<Props>()
const selected = ref(undefined as Entity | undefined)
const store = useBrowserStore()
Expand All @@ -29,7 +29,17 @@ const copy = (file: Entity) => {
}, 1000)
}
onMounted(() => store.syncDarkMode())
onMounted(() => {
store.syncDarkMode()
store.prepareTool({
singleDisk: props.field.singleDisk,
permissions: props.field.permissions,
tour: props.field.tour,
usePintura: props.field.usePintura || false,
pinturaOptions: props.field.pinturaOptions || {},
cropperOptions: props.field.cropperOptions || {},
})
})
</script>

<template>
Expand Down
1 change: 1 addition & 0 deletions resources/js/stores/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ const useBrowserStore = defineStore('nova-file-manager/browser', {
file: {
upload: true,
rename: true,
download: true,
edit: true,
delete: true,
unzip: true,
Expand Down

0 comments on commit f834c0f

Please sign in to comment.