From 34bcf9339c86f145442b9edc799416462bf21fc5 Mon Sep 17 00:00:00 2001
From: pacien
Date: Fri, 8 May 2020 19:28:07 +0200
Subject: viewer/GalleryNavigation: revert to static template component
dispatching
We'll see for dynamic component loading later.
---
viewer/src/services/navigation.ts | 4 ++--
viewer/src/views/GalleryNavigation.vue | 28 ++++++++--------------------
2 files changed, 10 insertions(+), 22 deletions(-)
(limited to 'viewer/src')
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 {
}
// Checks if the type of an item matches
- public static checkType(item: Gallery.Item | null, type: Gallery.ItemType): boolean {
- return item?.properties.type === type ?? false;
+ public static checkType(item: Gallery.Item | null, type: Gallery.ItemType | null): boolean {
+ return item?.properties.type === type;
}
public static getLastDirectory(itemPath: Gallery.Item[]): Gallery.Directory {
diff --git a/viewer/src/views/GalleryNavigation.vue b/viewer/src/views/GalleryNavigation.vue
index 2e40409..f36fc8a 100644
--- a/viewer/src/views/GalleryNavigation.vue
+++ b/viewer/src/views/GalleryNavigation.vue
@@ -20,12 +20,17 @@
-
+
+
+
+
+
--
cgit v1.2.3