Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions src/components/FileManager.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ import VideoPlayer from '@/components/VideoPlayer.vue';
import {downloadFilesAsZip, getFileIcon, phpStringSizeToBytes} from '@/utils';
import ModalDialog from '@/components/ModalDialog.vue';
import {isFolderSynced, useSyncing, blobFileList} from "@/composables/syncing";
import {useDisplay} from "vuetify/framework";

const globalStore = useGlobalStore();
const syncing = useSyncing();
const { smAndDown } = useDisplay()
const structure = defineModel<IStructure>({ required: true });
const { selected = [], serverSettings, canUpload = false, canAddToLocal = false, canDelete = false, canSelect = false, canDownload = false } = defineProps<{
selected?: IFile[],
Expand Down Expand Up @@ -328,7 +330,7 @@ watch(() => globalStore.fileManager.visible, () => {
persistent
scrollable
>
<template v-if="globalStore.session.loggedIn" #append>
<template v-if="globalStore.session.loggedIn && !smAndDown" #append>
<v-tabs v-model="filter" class="my-n4" density="compact">
<v-tab value="all">
All ({{ getFilesByType('all').length }})
Expand All @@ -351,7 +353,7 @@ watch(() => globalStore.fileManager.visible, () => {
prepend-inner-icon="mdi-magnify"
hide-details
>
<template #append-inner>
<template v-if="!smAndDown" #append-inner>
<div class="d-flex align-center" style="gap: 0.5rem">
<v-select
v-model="sortBy"
Expand Down Expand Up @@ -535,10 +537,14 @@ watch(() => globalStore.fileManager.visible, () => {
v-if="!canSelect || globalStore.fileManager.multiple"
v-bind="props"
:disabled="loading || selectedFiles.length === 0"
:icon="smAndDown"
variant="text"
>
Bulk Actions
<v-icon icon="mdi-chevron-up" end />
<template v-if="!smAndDown">
Bulk Actions
<v-icon icon="mdi-chevron-up" end />
</template>
<v-icon v-else icon="mdi-dots-vertical" />
</v-btn>
</template>
<v-list>
Expand All @@ -563,6 +569,7 @@ watch(() => globalStore.fileManager.visible, () => {
</v-list>
</v-menu>
<v-checkbox
v-if="!smAndDown"
v-model="showInfo"
label="Show additional info"
hide-details
Expand Down
2 changes: 1 addition & 1 deletion src/components/StructureEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ watch(() => globalStore.userSettings.data, () => {
v-if="structure"
v-bind="props"
:loading="structureStates.saving"
:disabled="!canSaveStructure || (!modelStore.structure.server_url && !isFolderSynced(modelStore.structure)) || structureStates.saving || structureStates.saved"
:disabled="!canSaveStructure || ((!modelStore.structure.server_url || !globalStore.session.loggedIn) && !isFolderSynced(modelStore.structure)) || structureStates.saving || structureStates.saved"
:prepend-icon="!structureStates.saved ? 'mdi-content-save' : 'mdi-check'"
variant="outlined"
color="primary"
Expand Down