diff options
author | pacien | 2020-05-13 00:43:40 +0200 |
---|---|---|
committer | Notkea | 2020-05-22 01:02:18 +0200 |
commit | acffcad3f554be95ff728fb84df96d26094d0cc5 (patch) | |
tree | ea4f7f190112a4e827cd88c2a2d6e45ebb549e8a /viewer | |
parent | 04d5cb917f4288c26a308dfda4ba788d77fda8fd (diff) | |
download | ldgallery-acffcad3f554be95ff728fb84df96d26094d0cc5.tar.gz |
viewer: use different icon for plain text files
Diffstat (limited to 'viewer')
-rw-r--r-- | viewer/src/plugins/fontawesome-icons.ts | 1 | ||||
-rw-r--r-- | viewer/src/services/navigation.ts | 2 |
2 files changed, 3 insertions, 0 deletions
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 { | |||
31 | faAngleRight, | 31 | faAngleRight, |
32 | faAngleDoubleLeft, | 32 | faAngleDoubleLeft, |
33 | faFile, | 33 | faFile, |
34 | faFileAlt, | ||
34 | faFileDownload, | 35 | faFileDownload, |
35 | } from "@fortawesome/free-solid-svg-icons"; | 36 | } 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 { | |||
70 | switch (item.properties.type) { | 70 | switch (item.properties.type) { |
71 | case "picture": | 71 | case "picture": |
72 | return "image"; | 72 | return "image"; |
73 | case "plaintext": | ||
74 | return "file-alt"; | ||
73 | case "directory": | 75 | case "directory": |
74 | return "folder"; | 76 | return "folder"; |
75 | case "other": | 77 | case "other": |