diff options
author | pacien | 2020-05-08 19:28:07 +0200 |
---|---|---|
committer | pacien | 2020-05-08 19:28:07 +0200 |
commit | 34bcf9339c86f145442b9edc799416462bf21fc5 (patch) | |
tree | b9b64f4f445b7464ff59eba91ef7e42829f751e5 /viewer/src/services | |
parent | e02b09f405c81fd3eb612b0bb1f78f5860b0a5e8 (diff) | |
download | ldgallery-34bcf9339c86f145442b9edc799416462bf21fc5.tar.gz |
viewer/GalleryNavigation: revert to static template component dispatching
We'll see for dynamic component loading later.
Diffstat (limited to 'viewer/src/services')
-rw-r--r-- | viewer/src/services/navigation.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/viewer/src/services/navigation.ts b/viewer/src/services/navigation.ts index fa17990..aa7ef5e 100644 --- a/viewer/src/services/navigation.ts +++ b/viewer/src/services/navigation.ts | |||
@@ -40,8 +40,8 @@ export default class Navigation { | |||
40 | } | 40 | } |
41 | 41 | ||
42 | // Checks if the type of an item matches | 42 | // Checks if the type of an item matches |
43 | public static checkType(item: Gallery.Item | null, type: Gallery.ItemType): boolean { | 43 | public static checkType(item: Gallery.Item | null, type: Gallery.ItemType | null): boolean { |
44 | return item?.properties.type === type ?? false; | 44 | return item?.properties.type === type; |
45 | } | 45 | } |
46 | 46 | ||
47 | public static getLastDirectory(itemPath: Gallery.Item[]): Gallery.Directory { | 47 | public static getLastDirectory(itemPath: Gallery.Item[]): Gallery.Directory { |