mirror of
https://github.com/nextcloud/server.git
synced 2026-06-06 15:23:17 -04:00
Merge pull request #45598 from nextcloud/backport/45594/stable28
[stable28] fix(files): Ensure active file list entry is highlighted
This commit is contained in:
commit
67dfc8d34c
4 changed files with 7 additions and 14 deletions
|
|
@ -236,13 +236,6 @@ export default defineComponent({
|
|||
}
|
||||
return ''
|
||||
},
|
||||
|
||||
/**
|
||||
* This entry is the current active node
|
||||
*/
|
||||
isActive() {
|
||||
return this.fileid === this.currentFileId?.toString?.()
|
||||
},
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
|
|
|||
|
|
@ -22,11 +22,12 @@
|
|||
|
||||
import type { PropType } from 'vue'
|
||||
|
||||
import { extname } from 'path'
|
||||
import { showError } from '@nextcloud/dialogs'
|
||||
import { FileType, Permission, Folder, File as NcFile, NodeStatus, Node, View } from '@nextcloud/files'
|
||||
import { generateUrl } from '@nextcloud/router'
|
||||
import { translate as t } from '@nextcloud/l10n'
|
||||
import { generateUrl } from '@nextcloud/router'
|
||||
import { vOnClickOutside } from '@vueuse/components'
|
||||
import { extname } from 'path'
|
||||
import Vue, { defineComponent } from 'vue'
|
||||
|
||||
import { action as sidebarAction } from '../actions/sidebarAction.ts'
|
||||
|
|
@ -34,7 +35,6 @@ import { getDragAndDropPreview } from '../utils/dragUtils.ts'
|
|||
import { hashCode } from '../utils/hashUtils.ts'
|
||||
import { dataTransferToFileTree, onDropExternalFiles, onDropInternalFiles } from '../services/DropService.ts'
|
||||
import logger from '../logger.js'
|
||||
import { showError } from '@nextcloud/dialogs'
|
||||
|
||||
Vue.directive('onClickOutside', vOnClickOutside)
|
||||
|
||||
|
|
@ -118,7 +118,7 @@ export default defineComponent({
|
|||
},
|
||||
|
||||
isActive() {
|
||||
return this.fileid?.toString?.() === this.currentFileId?.toString?.()
|
||||
return String(this.fileid) === String(this.currentFileId)
|
||||
},
|
||||
|
||||
canDrag() {
|
||||
|
|
|
|||
4
dist/files-main.js
vendored
4
dist/files-main.js
vendored
File diff suppressed because one or more lines are too long
2
dist/files-main.js.map
vendored
2
dist/files-main.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue