aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src/components/FileEntry/FileEntryName.vue
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2024-07-30 18:19:55 -0700
committerChristopher Ng <chrng8@gmail.com>2024-08-01 09:17:56 -0700
commit3fabc4f7336bbf93d65acc918e1300616091dd54 (patch)
tree6d9969307c21dde46c9e0e621e73827a16c9e524 /apps/files/src/components/FileEntry/FileEntryName.vue
parent855a45650e608ff797b5ae38a7f18fa24a474f3f (diff)
downloadnextcloud-server-3fabc4f7336bbf93d65acc918e1300616091dd54.tar.gz
nextcloud-server-3fabc4f7336bbf93d65acc918e1300616091dd54.zip
feat: Navigate via folder tree
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/files/src/components/FileEntry/FileEntryName.vue')
-rw-r--r--apps/files/src/components/FileEntry/FileEntryName.vue5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files/src/components/FileEntry/FileEntryName.vue b/apps/files/src/components/FileEntry/FileEntryName.vue
index 1d45f7de17e..439037b984e 100644
--- a/apps/files/src/components/FileEntry/FileEntryName.vue
+++ b/apps/files/src/components/FileEntry/FileEntryName.vue
@@ -45,6 +45,7 @@ import { showError, showSuccess } from '@nextcloud/dialogs'
import { emit } from '@nextcloud/event-bus'
import { FileType, NodeStatus } from '@nextcloud/files'
import { translate as t } from '@nextcloud/l10n'
+import { dirname } from '@nextcloud/paths'
import { defineComponent, inject } from 'vue'
import NcTextField from '@nextcloud/vue/dist/Components/NcTextField.js'
@@ -269,6 +270,10 @@ export default defineComponent({
// Success 🎉
emit('files:node:updated', this.source)
emit('files:node:renamed', this.source)
+ emit('files:node:moved', {
+ node: this.source,
+ oldSource: `${dirname(this.source.source)}/${oldName}`,
+ })
showSuccess(t('files', 'Renamed "{oldName}" to "{newName}"', { oldName, newName }))
// Reset the renaming store