Merge pull request #58436 from redsteadz/enhancement/folder-icon

Enhancement/folder icon changed to be closer to the title "View in Folder".
This commit is contained in:
Joas Schilling
2026-02-24 21:40:11 +01:00
committed by GitHub
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