Skip to content

Commit 9b7feee

Browse files
committed
fix(files): use more appropriate icon for context menu action
Signed-off-by: Hamees Ehsan <harcolemas@gmail.com>
1 parent 7d24904 commit 9b7feee

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

apps/files/src/actions/viewInFolderAction.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ describe('View in folder action conditions tests', () => {
3535
contents: [],
3636
})).toMatch(/<svg.+<\/svg>/)
3737
expect(action.default).toBeUndefined()
38-
expect(action.order).toBe(80)
38+
expect(action.order).toBe(10)
3939
expect(action.enabled).toBeDefined()
4040
})
4141
})

apps/files/src/actions/viewInFolderAction.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import type { IFileAction } from '@nextcloud/files'
77

8-
import FolderMoveSvg from '@mdi/svg/svg/folder-move-outline.svg?raw'
8+
import FolderEyeSvg from '@mdi/svg/svg/folder-eye-outline.svg?raw'
99
import { FileType, Permission } from '@nextcloud/files'
1010
import { t } from '@nextcloud/l10n'
1111
import { isPublicShare } from '@nextcloud/sharing/public'
@@ -15,7 +15,7 @@ export const action: IFileAction = {
1515
displayName() {
1616
return t('files', 'View in folder')
1717
},
18-
iconSvgInline: () => FolderMoveSvg,
18+
iconSvgInline: () => FolderEyeSvg,
1919

2020
enabled({ nodes, view }) {
2121
// Not enabled for public shares
@@ -63,5 +63,5 @@ export const action: IFileAction = {
6363
return null
6464
},
6565

66-
order: 80,
66+
order: 10,
6767
}

dist/files-init.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/files-init.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)