aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src/components/FileEntry/FileEntryActions.vue
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@protonmail.com>2023-10-13 11:30:34 +0200
committerJohn Molakvoæ <skjnldsv@protonmail.com>2023-10-17 11:19:02 +0200
commit694fd51cbaa18acbaa76a100010f00b904f96f7b (patch)
tree85c411af182c505bd145746b32cd405d86e843ab /apps/files/src/components/FileEntry/FileEntryActions.vue
parent64c32f714894d2c884c82922a5349bbe64a55be8 (diff)
downloadnextcloud-server-694fd51cbaa18acbaa76a100010f00b904f96f7b.tar.gz
nextcloud-server-694fd51cbaa18acbaa76a100010f00b904f96f7b.zip
fix(files): split FileEntry Name
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files/src/components/FileEntry/FileEntryActions.vue')
-rw-r--r--apps/files/src/components/FileEntry/FileEntryActions.vue8
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/files/src/components/FileEntry/FileEntryActions.vue b/apps/files/src/components/FileEntry/FileEntryActions.vue
index 84d8f4a40f9..e8af5c0fe16 100644
--- a/apps/files/src/components/FileEntry/FileEntryActions.vue
+++ b/apps/files/src/components/FileEntry/FileEntryActions.vue
@@ -36,7 +36,7 @@
ref="actionsMenu"
:boundaries-element="getBoundariesElement()"
:container="getBoundariesElement()"
- :disabled="isLoading"
+ :disabled="isLoading || loading !== ''"
:force-name="true"
:force-menu="enabledInlineActions.length === 0 /* forceMenu only if no inline actions */"
:inline="enabledInlineActions.length"
@@ -59,7 +59,7 @@
</template>
<script lang="ts">
-import { DefaultType, FileAction, Folder, Node, NodeStatus, View, getFileActions } from '@nextcloud/files'
+import { DefaultType, FileAction, Node, NodeStatus, View, getFileActions } from '@nextcloud/files'
import { showError, showSuccess } from '@nextcloud/dialogs'
import { translate as t } from '@nextcloud/l10n';
import Vue, { PropType } from 'vue'
@@ -113,6 +113,10 @@ export default Vue.extend({
},
computed: {
+ currentDir() {
+ // Remove any trailing slash but leave root slash
+ return (this.$route?.query?.dir?.toString() || '/').replace(/^(.+)\/$/, '$1')
+ },
currentView(): View {
return this.$navigation.active as View
},