fix(files): use more appropriate icon for context menu action

Signed-off-by: Hamees Ehsan <harcolemas@gmail.com>
This commit is contained in:
Hamees Ehsan 2026-02-25 00:30:21 +05:00
parent 7d24904baf
commit 9b7feee481
No known key found for this signature in database
4 changed files with 7 additions and 7 deletions

View file

@ -35,7 +35,7 @@ describe('View in folder action conditions tests', () => {
contents: [],
})).toMatch(/<svg.+<\/svg>/)
expect(action.default).toBeUndefined()
expect(action.order).toBe(80)
expect(action.order).toBe(10)
expect(action.enabled).toBeDefined()
})
})

View file

@ -5,7 +5,7 @@
import type { IFileAction } from '@nextcloud/files'
import FolderMoveSvg from '@mdi/svg/svg/folder-move-outline.svg?raw'
import FolderEyeSvg from '@mdi/svg/svg/folder-eye-outline.svg?raw'
import { FileType, Permission } from '@nextcloud/files'
import { t } from '@nextcloud/l10n'
import { isPublicShare } from '@nextcloud/sharing/public'
@ -15,7 +15,7 @@ export const action: IFileAction = {
displayName() {
return t('files', 'View in folder')
},
iconSvgInline: () => FolderMoveSvg,
iconSvgInline: () => FolderEyeSvg,
enabled({ nodes, view }) {
// Not enabled for public shares
@ -63,5 +63,5 @@ export const action: IFileAction = {
return null
},
order: 80,
order: 10,
}

4
dist/files-init.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long