mirror of
https://github.com/nextcloud/server.git
synced 2026-02-27 18:37:17 +01:00
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:
@@ -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()
|
||||
})
|
||||
})
|
||||
|
||||
@@ -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
4
dist/files-init.js
vendored
File diff suppressed because one or more lines are too long
2
dist/files-init.js.map
vendored
2
dist/files-init.js.map
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user