Skip to content

Commit

Permalink
wip: Refactor documents related components #904
Browse files Browse the repository at this point in the history
  • Loading branch information
cnouguier committed Dec 30, 2024
1 parent b4dcef6 commit 34eacc2
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions core/client/components/document/KBrowser.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<template>
<div class="fit column">
<div
class="fit column"
:class="{ 'bg-dark text-grey-3': dark }"
>
<!--
Header
-->
Expand Down Expand Up @@ -31,7 +34,7 @@
id="previous-button"
icon="las la-angle-left"
:size="$q.screen.gt.xs ? '1rem' : '0.8rem'"
color="white"

:handler="previous"
/>
</div>
Expand All @@ -58,7 +61,7 @@
id="next-button"
icon="las la-angle-right"
:size="$q.screen.gt.xs ? '1.2rem' : '0.8rem'"
color="white"

:handler="next"
/>
</div>
Expand Down Expand Up @@ -108,6 +111,10 @@ const props = defineProps({
toolbar: {
type: Array,
default: () => null
},
dark: {
type: Boolean,
default: true
}
})
Expand All @@ -133,7 +140,7 @@ const tools = computed(() => {
components.push({
id: 'download-file',
icon: 'las la-download',
color: 'white',
color: props.dark ? 'grey-3' : 'grey-8',
tooltip: 'KBrowser.DOWNLOAD_FILE',
handler: downloadFile
})
Expand All @@ -142,7 +149,7 @@ const tools = computed(() => {
components.push({
id: 'upload-file',
icon: 'las la-upload',
color: 'white',
color: props.dark ? 'grey-3' : 'grey-8',
tooltip: 'KBrowser.UPLOAD_FILES',
dialog: {
component: 'document/KUploader',
Expand All @@ -157,7 +164,7 @@ const tools = computed(() => {
components.push({
id: 'delete-file',
icon: 'las la-trash',
color: 'white',
color: props.dark ? 'grey-3' : 'grey-8',
tooltip: 'KBrowser.DELETE_FILE',
handler: deleteFile
})
Expand Down

0 comments on commit 34eacc2

Please sign in to comment.