diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2023-09-20 00:12:20 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2023-09-20 13:58:31 +0200 |
commit | fac5197486107559669b39c34fbd1330277e8847 (patch) | |
tree | 58f64409979c56941f2b74cf37172de4ebdba3cc /apps/files | |
parent | 6714e51b0ce25fe5d9223279a9484abd8c00f85e (diff) | |
download | nextcloud-server-fac5197486107559669b39c34fbd1330277e8847.tar.gz nextcloud-server-fac5197486107559669b39c34fbd1330277e8847.zip |
feat(files): add files_sharing indicator
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/src/actions/deleteAction.ts | 2 | ||||
-rw-r--r-- | apps/files/src/components/FileEntry.vue | 5 | ||||
-rw-r--r-- | apps/files/src/components/FilesListVirtual.vue | 4 |
3 files changed, 9 insertions, 2 deletions
diff --git a/apps/files/src/actions/deleteAction.ts b/apps/files/src/actions/deleteAction.ts index 528a0faecab..04c139fe38e 100644 --- a/apps/files/src/actions/deleteAction.ts +++ b/apps/files/src/actions/deleteAction.ts @@ -31,7 +31,7 @@ export const action = new FileAction({ id: 'delete', displayName(nodes: Node[], view: View) { return view.id === 'trashbin' - ? t('files_trashbin', 'Delete permanently') + ? t('files', 'Delete permanently') : t('files', 'Delete') }, iconSvgInline: () => TrashCanSvg, diff --git a/apps/files/src/components/FileEntry.vue b/apps/files/src/components/FileEntry.vue index 81a61843db0..83b991dcd50 100644 --- a/apps/files/src/components/FileEntry.vue +++ b/apps/files/src/components/FileEntry.vue @@ -109,9 +109,11 @@ <!-- Render actions --> <CustomElementRender v-for="action in enabledRenderActions" :key="action.id" + :class="'files-list__row-action-' + action.id" :current-view="currentView" :render="action.renderInline" - :source="source" /> + :source="source" + class="files-list__row-action--inline" /> <!-- Menu actions --> <NcActions v-if="visible" @@ -119,6 +121,7 @@ :boundaries-element="getBoundariesElement()" :container="getBoundariesElement()" :disabled="source._loading" + :force-name="true" :force-menu="enabledInlineActions.length === 0 /* forceMenu only if no inline actions */" :inline="enabledInlineActions.length" :open.sync="openedMenu"> diff --git a/apps/files/src/components/FilesListVirtual.vue b/apps/files/src/components/FilesListVirtual.vue index ace8d87fc8c..cd41a179ce9 100644 --- a/apps/files/src/components/FilesListVirtual.vue +++ b/apps/files/src/components/FilesListVirtual.vue @@ -461,6 +461,10 @@ export default Vue.extend({ } } + .files-list__row-action--inline { + margin-right: 7px; + } + .files-list__row-mtime, .files-list__row-size { // Right align text |