aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src/components/FileEntry/FileEntryActions.vue
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@protonmail.com>2023-10-18 11:08:25 +0200
committernextcloud-command <nextcloud-command@users.noreply.github.com>2023-10-19 06:42:33 +0000
commit4db03884a566bc637e859cb83c806201b326bb3c (patch)
treec208dd414fcbeaf2da03d9132730ddcea4913f72 /apps/files/src/components/FileEntry/FileEntryActions.vue
parent4876eacf3fee0f4bbbaa70f924e5429133f1d1bd (diff)
downloadnextcloud-server-4db03884a566bc637e859cb83c806201b326bb3c.tar.gz
nextcloud-server-4db03884a566bc637e859cb83c806201b326bb3c.zip
fix(files): drop visible and adjust drag-to-scroll feature
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'apps/files/src/components/FileEntry/FileEntryActions.vue')
-rw-r--r--apps/files/src/components/FileEntry/FileEntryActions.vue13
1 files changed, 3 insertions, 10 deletions
diff --git a/apps/files/src/components/FileEntry/FileEntryActions.vue b/apps/files/src/components/FileEntry/FileEntryActions.vue
index 404936f485b..bd4649cdee5 100644
--- a/apps/files/src/components/FileEntry/FileEntryActions.vue
+++ b/apps/files/src/components/FileEntry/FileEntryActions.vue
@@ -20,8 +20,7 @@
-
-->
<template>
- <td v-show="visible"
- class="files-list__row-actions"
+ <td class="files-list__row-actions"
data-cy-files-list-row-actions>
<!-- Render actions -->
<CustomElementRender v-for="action in enabledRenderActions"
@@ -33,8 +32,7 @@
class="files-list__row-action--inline" />
<!-- Menu actions -->
- <NcActions v-if="visible"
- ref="actionsMenu"
+ <NcActions ref="actionsMenu"
:boundaries-element="getBoundariesElement"
:container="getBoundariesElement"
:disabled="isLoading || loading !== ''"
@@ -71,7 +69,6 @@ import NcIconSvgWrapper from '@nextcloud/vue/dist/Components/NcIconSvgWrapper.js
import NcLoadingIcon from '@nextcloud/vue/dist/Components/NcLoadingIcon.js'
import CustomElementRender from '../CustomElementRender.vue'
-
import logger from '../../logger.js'
// The registered actions list
@@ -105,10 +102,6 @@ export default Vue.extend({
type: Object as PropType<Node>,
required: true,
},
- visible: {
- type: Boolean,
- default: false,
- },
gridMode: {
type: Boolean,
default: false,
@@ -153,7 +146,7 @@ export default Vue.extend({
// Enabled action that are displayed inline with a custom render function
enabledRenderActions() {
- if (!this.visible || this.gridMode) {
+ if (this.gridMode) {
return []
}
return this.enabledActions.filter(action => typeof action.renderInline === 'function')