Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/views/Viewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ import Download from 'vue-material-design-icons/Download.vue'
import Fullscreen from 'vue-material-design-icons/Fullscreen.vue'
import FullscreenExit from 'vue-material-design-icons/FullscreenExit.vue'
import Pencil from 'vue-material-design-icons/Pencil.vue'
import svgEye from '@mdi/svg/svg/eye.svg?raw'

// Dynamic loading
const NcModal = () => import(
Expand Down Expand Up @@ -937,6 +938,7 @@ export default defineComponent({
OCA.Files.fileActions.registerAction({
name: 'view',
displayName: t('viewer', 'View'),
icon: () => svgEye,
Copy link

@tanyaka tanyaka May 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

- icon: () => svgEye,
+ iconClass: 'icon-viewer',

I would propose to apply existing approach just to add a new iconClass property to data object as here. So we have less changes in

mime,
permissions: OC.PERMISSION_READ,
actionHandler: legacyFilesActionHandler,
Expand Down
Loading