diff options
author | John Molakvoæ <skjnldsv@protonmail.com> | 2023-10-13 16:49:54 +0200 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2023-10-17 11:19:02 +0200 |
commit | 16975ae45720945776155f026835cfdaf8491383 (patch) | |
tree | 6eb6db9dee1d86a7da98c46b10d0dd9ea004dcc7 /apps/files/src/components/FileEntry/FileEntryActions.vue | |
parent | 694fd51cbaa18acbaa76a100010f00b904f96f7b (diff) | |
download | nextcloud-server-16975ae45720945776155f026835cfdaf8491383.tar.gz nextcloud-server-16975ae45720945776155f026835cfdaf8491383.zip |
feat(files): grid view
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.vue | 8 |
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 e8af5c0fe16..040b59066ec 100644 --- a/apps/files/src/components/FileEntry/FileEntryActions.vue +++ b/apps/files/src/components/FileEntry/FileEntryActions.vue @@ -105,6 +105,10 @@ export default Vue.extend({ type: Boolean, default: false, }, + gridMode: { + type: Boolean, + default: false, + }, }, setup() { @@ -137,7 +141,7 @@ export default Vue.extend({ // Enabled action that are displayed inline enabledInlineActions() { - if (this.filesListWidth < 768) { + if (this.filesListWidth < 768 || this.gridMode) { return [] } return this.enabledActions.filter(action => action?.inline?.(this.source, this.currentView)) @@ -145,7 +149,7 @@ export default Vue.extend({ // Enabled action that are displayed inline with a custom render function enabledRenderActions() { - if (!this.visible) { + if (!this.visible || this.gridMode) { return [] } return this.enabledActions.filter(action => typeof action.renderInline === 'function') |