mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
fix(files): use more appropriate icon for context menu action
Signed-off-by: Hamees Ehsan <harcolemas@gmail.com>
This commit is contained in:
parent
7d24904baf
commit
9b7feee481
4 changed files with 7 additions and 7 deletions
|
|
@ -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
Loading…
Reference in a new issue