mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 16:22:14 +00:00
fixes
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<template>
|
||||
<div
|
||||
class="sticky top-14 z-[19] overflow-x-auto whitespace-nowrap bg-white px-4 pb-3 dark:bg-dark-background lg:hidden"
|
||||
class="sticky top-14 z-[19] whitespace-nowrap bg-white dark:bg-dark-background lg:hidden"
|
||||
>
|
||||
<div class="flex items-center">
|
||||
<div class="flex items-center overflow-x-auto pb-3 pl-4">
|
||||
<!--Show Buttons-->
|
||||
<slot v-if="!isMultiSelectMode" />
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
spellcheck="false"
|
||||
>
|
||||
<!--MultiSelecting for the mobile version-->
|
||||
<CheckBox v-if="isMultiSelectMode" v-model="isClicked" :is-clicked="isClicked" class="mr-5" />
|
||||
<CheckBox v-if="isMultiSelectMode" v-model="isChecked" :is-clicked="isClicked" class="mr-5" />
|
||||
|
||||
<!--Item thumbnail-->
|
||||
<div class="relative w-16 shrink-0">
|
||||
@@ -125,11 +125,21 @@ export default {
|
||||
Emoji,
|
||||
},
|
||||
props: ['mobileHandler', 'highlight', 'entry'],
|
||||
watch: {
|
||||
isChecked: function (val) {
|
||||
if (val) {
|
||||
this.$store.commit('ADD_ITEM_TO_CLIPBOARD', this.entry)
|
||||
} else {
|
||||
this.$store.commit('REMOVE_ITEM_FROM_CLIPBOARD', this.entry.data.id)
|
||||
}
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
mobileMultiSelect: false,
|
||||
itemName: undefined,
|
||||
isSelected: false,
|
||||
isChecked: false,
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<PopupHeader :title="$t('create_language')" icon="edit" />
|
||||
|
||||
<!--Content-->
|
||||
<PopupContent>
|
||||
<PopupContent class="!overflow-initial">
|
||||
<!--Form to set sharing-->
|
||||
<ValidationObserver @submit.prevent="createLanguage" ref="createForm" v-slot="{ invalid }" tag="form">
|
||||
<ValidationProvider
|
||||
|
||||
@@ -10,14 +10,14 @@
|
||||
|
||||
<!--Folder tree-->
|
||||
<div v-if="!isLoadingTree && navigation">
|
||||
<ThumbnailItem v-if="clipboard.length < 2 || isSelectedItem" class="mb-5" :item="pickedItem" />
|
||||
<ThumbnailItem v-if="clipboard.length === 1 || isSelectedItem" class="mb-5" :item="pickedItem" />
|
||||
|
||||
<TitlePreview
|
||||
class="mb-4"
|
||||
icon="check-square"
|
||||
:title="$t('selected_multiple')"
|
||||
:subtitle="this.clipboard.length + ' ' + $tc('items', this.clipboard.length)"
|
||||
v-if="clipboard.length > 1 && !isSelectedItem"
|
||||
:subtitle="clipboard.length + ' ' + $tc('items', clipboard.length)"
|
||||
v-if="clipboard.length > 1 || !isSelectedItem"
|
||||
/>
|
||||
|
||||
<TreeMenu
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<PopupHeader :title="$t('popup_share_create.title', { item: itemTypeTitle })" icon="share" />
|
||||
|
||||
<!--Content-->
|
||||
<PopupContent>
|
||||
<PopupContent class="!overflow-initial">
|
||||
<!--Item Thumbnail-->
|
||||
<ThumbnailItem class="mb-5" :item="pickedItem" />
|
||||
|
||||
|
||||
6
resources/js/helpers/itemHelpers.js
vendored
6
resources/js/helpers/itemHelpers.js
vendored
@@ -1,6 +1,7 @@
|
||||
import i18n from '../i18n'
|
||||
import store from '../store/index'
|
||||
import { events } from '../bus'
|
||||
import {isArray} from "lodash";
|
||||
|
||||
const itemHelpers = {
|
||||
install(Vue) {
|
||||
@@ -39,7 +40,10 @@ const itemHelpers = {
|
||||
}
|
||||
|
||||
Vue.prototype.$moveFileOrFolder = function (entry) {
|
||||
events.$emit('popup:open', { name: 'move', item: [entry] })
|
||||
|
||||
let item = isArray(entry) ? [...entry] : [entry]
|
||||
|
||||
events.$emit('popup:open', { name: 'move', item: item })
|
||||
}
|
||||
|
||||
Vue.prototype.$createFolderByPopup = function () {
|
||||
|
||||
Reference in New Issue
Block a user