From 42105af46681d81959a5d5a9a16ec9e98463a92e Mon Sep 17 00:00:00 2001
From: Zero~Informatique
Date: Thu, 30 Jan 2020 21:24:15 +0100
Subject: viewer: new breadcrumb. navigation buttons. and styling improvements
---
viewer/src/views/GalleryThumbnail.vue | 2 +-
viewer/src/views/PanelLeft.vue | 5 +--
viewer/src/views/PanelTop.vue | 78 +++++++++++++++++------------------
3 files changed, 39 insertions(+), 46 deletions(-)
(limited to 'viewer/src/views')
diff --git a/viewer/src/views/GalleryThumbnail.vue b/viewer/src/views/GalleryThumbnail.vue
index 433a673..66e46d6 100644
--- a/viewer/src/views/GalleryThumbnail.vue
+++ b/viewer/src/views/GalleryThumbnail.vue
@@ -28,7 +28,7 @@
@load="loading=false"
/>
-
+
{{item.path}}
diff --git a/viewer/src/views/PanelLeft.vue b/viewer/src/views/PanelLeft.vue
index 16be249..35c092a 100644
--- a/viewer/src/views/PanelLeft.vue
+++ b/viewer/src/views/PanelLeft.vue
@@ -24,7 +24,7 @@
{{$t('panelLeft.filters')}}
{{$t('panelLeft.propositions')}}
-
+
@@ -36,7 +36,4 @@ export default class PanelLeft extends Vue {}
diff --git a/viewer/src/views/PanelTop.vue b/viewer/src/views/PanelTop.vue
index 0efc9b6..7e24699 100644
--- a/viewer/src/views/PanelTop.vue
+++ b/viewer/src/views/PanelTop.vue
@@ -18,23 +18,25 @@
-->
-
-
-
-
+
+
+
+ -
+
+
+ {{item.title}}
+
+
+
+
@@ -44,23 +46,8 @@ import Gallery from "./Gallery.vue";
@Component
export default class PanelTop extends Vue {
- activeStep: number = -1;
-
- mounted() {
- this.currentItemPathChanged();
- }
-
- get isReady() {
- return this.activeStep >= 0;
- }
-
- @Watch("$galleryStore.currentItemPath")
- currentItemPathChanged() {
- this.activeStep = -1;
- this.$nextTick(() => (this.activeStep = this.$galleryStore.currentItemPath.length - 1));
- }
-
getIcon(item: Gallery.Item) {
+ if (item.path.length <= 1) return "home";
switch (item.properties.type) {
case "picture":
return "image";
@@ -68,19 +55,28 @@ export default class PanelTop extends Vue {
return "folder";
}
}
-
- onStepClick(index: number) {
- const item = this.$galleryStore.currentItemPath[index];
- if (item) this.$router.push(item.path);
- }
}
--
cgit v1.2.3