From 185b84fbed180e4d2da7d4cc2ee91a3481f47406 Mon Sep 17 00:00:00 2001 From: pacien Date: Mon, 18 May 2020 20:05:32 +0200 Subject: viewer: add icon for pdf files --- viewer/src/plugins/fontawesome-icons.ts | 1 + viewer/src/services/navigation.ts | 2 ++ 2 files changed, 3 insertions(+) (limited to 'viewer/src') diff --git a/viewer/src/plugins/fontawesome-icons.ts b/viewer/src/plugins/fontawesome-icons.ts index b5df176..ffe3709 100644 --- a/viewer/src/plugins/fontawesome-icons.ts +++ b/viewer/src/plugins/fontawesome-icons.ts @@ -32,5 +32,6 @@ export { faAngleDoubleLeft, faFile, faFileAlt, + faFilePdf, faFileDownload, } from "@fortawesome/free-solid-svg-icons"; diff --git a/viewer/src/services/navigation.ts b/viewer/src/services/navigation.ts index 4d3b376..7d1ae50 100644 --- a/viewer/src/services/navigation.ts +++ b/viewer/src/services/navigation.ts @@ -72,6 +72,8 @@ export default class Navigation { return "image"; case "plaintext": return "file-alt"; + case "pdf": + return "file-pdf"; case "directory": return "folder"; case "other": -- cgit v1.2.3