From acffcad3f554be95ff728fb84df96d26094d0cc5 Mon Sep 17 00:00:00 2001 From: pacien Date: Wed, 13 May 2020 00:43:40 +0200 Subject: viewer: use different icon for plain text files --- viewer/src/plugins/fontawesome-icons.ts | 1 + viewer/src/services/navigation.ts | 2 ++ 2 files changed, 3 insertions(+) (limited to 'viewer') diff --git a/viewer/src/plugins/fontawesome-icons.ts b/viewer/src/plugins/fontawesome-icons.ts index 2f45f2c..b5df176 100644 --- a/viewer/src/plugins/fontawesome-icons.ts +++ b/viewer/src/plugins/fontawesome-icons.ts @@ -31,5 +31,6 @@ export { faAngleRight, faAngleDoubleLeft, faFile, + faFileAlt, faFileDownload, } from "@fortawesome/free-solid-svg-icons"; diff --git a/viewer/src/services/navigation.ts b/viewer/src/services/navigation.ts index 1869702..4d3b376 100644 --- a/viewer/src/services/navigation.ts +++ b/viewer/src/services/navigation.ts @@ -70,6 +70,8 @@ export default class Navigation { switch (item.properties.type) { case "picture": return "image"; + case "plaintext": + return "file-alt"; case "directory": return "folder"; case "other": -- cgit v1.2.3