diff options
Diffstat (limited to 'apps/files/src/components/FileEntry.vue')
-rw-r--r-- | apps/files/src/components/FileEntry.vue | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/apps/files/src/components/FileEntry.vue b/apps/files/src/components/FileEntry.vue index 0ccd5622a5e..973e1de667f 100644 --- a/apps/files/src/components/FileEntry.vue +++ b/apps/files/src/components/FileEntry.vue @@ -21,7 +21,11 @@ --> <template> - <tr :class="{'files-list__row--dragover': dragover, 'files-list__row--loading': isLoading}" + <tr :class="{ + 'files-list__row--dragover': dragover, + 'files-list__row--loading': isLoading, + 'files-list__row--active': isActive, + }" data-cy-files-list-row :data-cy-files-list-row-fileid="fileid" :data-cy-files-list-row-name="source.basename" @@ -97,7 +101,7 @@ <script lang="ts"> import { defineComponent } from 'vue' -import { formatFileSize } from '@nextcloud/files' +import { Permission, formatFileSize } from '@nextcloud/files' import moment from '@nextcloud/moment' import { useActionsMenuStore } from '../store/actionsmenu.ts' @@ -232,6 +236,13 @@ export default defineComponent({ } return '' }, + + /** + * This entry is the current active node + */ + isActive() { + return this.fileid === this.currentFileId?.toString?.() + }, }, methods: { |