aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/src/components/FileEntry.vue22
1 files changed, 14 insertions, 8 deletions
diff --git a/apps/files/src/components/FileEntry.vue b/apps/files/src/components/FileEntry.vue
index d4258f29861..8dc067a407d 100644
--- a/apps/files/src/components/FileEntry.vue
+++ b/apps/files/src/components/FileEntry.vue
@@ -262,6 +262,15 @@ export default Vue.extend({
},
linkTo() {
+ if (this.source.type === 'folder') {
+ const to = { ...this.$route, query: { dir: join(this.dir, this.source.basename) } }
+ return {
+ is: 'router-link',
+ title: this.t('files', 'Open folder {name}', { name: this.displayName }),
+ to,
+ }
+ }
+
if (this.enabledDefaultActions.length > 0) {
const action = this.enabledDefaultActions[0]
const displayName = action.displayName([this.source], this.currentView)
@@ -271,14 +280,6 @@ export default Vue.extend({
}
}
- if (this.source.type === 'folder') {
- const to = { ...this.$route, query: { dir: join(this.dir, this.source.basename) } }
- return {
- is: 'router-link',
- title: this.t('files', 'Open folder {name}', { name: this.displayName }),
- to,
- }
- }
return {
href: this.source.source,
// TODO: Use first action title ?
@@ -525,6 +526,11 @@ export default Vue.extend({
}
},
execDefaultAction(event) {
+ // Do not execute the default action on the folder, navigate instead
+ if (this.source.type === 'folder') {
+ return
+ }
+
if (this.enabledDefaultActions.length > 0) {
event.preventDefault()
event.stopPropagation()