aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/plugins/router.ts
diff options
context:
space:
mode:
authorOzoneGrif2020-02-24 01:15:14 +0100
committerGitHub2020-02-24 01:15:14 +0100
commit2a458e25c0510798120dddbd85cef5ee440c2a2a (patch)
tree77d6958950e1c6a2ad425da1c095fefce58b05e4 /viewer/src/plugins/router.ts
parente42f4e864bac21ed3b19d1869df2cdd4f8c3433c (diff)
parenteb00c2a7874608f70ec7768eae8d006a22bc0a54 (diff)
downloadldgallery-2a458e25c0510798120dddbd85cef5ee440c2a2a.tar.gz
Merge pull request #144 from pacien/oz-search-overhaul
viewer: major code and search mode overhaul > Search indicator in the breadcrumbs: should be shown as clickable instead of being .disabled Not agreeing with this one.
Diffstat (limited to 'viewer/src/plugins/router.ts')
-rw-r--r--viewer/src/plugins/router.ts17
1 files changed, 9 insertions, 8 deletions
diff --git a/viewer/src/plugins/router.ts b/viewer/src/plugins/router.ts
index 8b4a8dc..00979c9 100644
--- a/viewer/src/plugins/router.ts
+++ b/viewer/src/plugins/router.ts
@@ -18,19 +18,20 @@
18*/ 18*/
19 19
20import Vue from "vue"; 20import Vue from "vue";
21import VueRouter from "vue-router"; 21import VueRouter, { RouteConfig } from "vue-router";
22import MainGallery from "@/views/MainGallery.vue"; 22import GalleryNavigation from "@/views/GalleryNavigation.vue";
23 23
24Vue.use(VueRouter); 24Vue.use(VueRouter);
25 25
26// async way : component: () => import(/* webpackChunkName: "MainGallery" */ "@/views/MainGallery.vue"), 26const routes: RouteConfig[] = [
27
28const routes = [
29 { 27 {
30 path: "*", 28 path: "*",
31 name: "MainGallery", 29 name: "GalleryNavigation",
32 component: MainGallery, 30 component: GalleryNavigation,
33 props: true 31 props: (route) => ({
32 path: route.params.pathMatch,
33 query: Object.keys(route.query),
34 }),
34 }, 35 },
35]; 36];
36 37