From afe4a270a6ad7a591dd47e4069b79ea2ead531b1 Mon Sep 17 00:00:00 2001 From: pacien Date: Mon, 31 Oct 2022 00:18:51 +0100 Subject: viewer: set icon type for EPUB items --- viewer/src/services/navigation.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'viewer/src') diff --git a/viewer/src/services/navigation.ts b/viewer/src/services/navigation.ts index b2e807b..fb01169 100644 --- a/viewer/src/services/navigation.ts +++ b/viewer/src/services/navigation.ts @@ -19,7 +19,18 @@ import { DirectoryItem, DownloadableItem, Item } from '@/@types/gallery'; import { ItemType } from '@/@types/itemType'; -import { faFile, faFileAlt, faFileAudio, faFilePdf, faFileVideo, faFolder, faHome, faImage, IconDefinition } from '@fortawesome/free-solid-svg-icons'; +import { + faFile, + faFileAlt, + faFileAudio, + faFilePdf, + faBook, + faFileVideo, + faFolder, + faHome, + faImage, + IconDefinition, +} from '@fortawesome/free-solid-svg-icons'; import { isDirectory } from './itemGuards'; const ICON_BY_TYPE: Record = { @@ -28,6 +39,7 @@ const ICON_BY_TYPE: Record = { plaintext: faFileAlt, markdown: faFileAlt, pdf: faFilePdf, + epub: faBook, video: faFileVideo, audio: faFileAudio, other: faFile, -- cgit v1.2.3