From e0013159566b1d26e89e79c98dcd484b04e06fad Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 7 Sep 2020 19:19:43 +0000 Subject: [PATCH] --- ayanova/src/router.js | 21 +++++++++++---------- ayanova/src/views/ay-report-edit.vue | 8 ++++++++ 2 files changed, 19 insertions(+), 10 deletions(-) diff --git a/ayanova/src/router.js b/ayanova/src/router.js index 53cff86b..ed39a9d0 100644 --- a/ayanova/src/router.js +++ b/ayanova/src/router.js @@ -369,7 +369,15 @@ export default new Router({ component: () => import(/* webpackChunkName: "adm" */ "./views/adm-report-templates.vue") }, - + { + path: "/report-edit/:recordid", //Route to edit a report template + name: "ay-report-edit", + component: () => + import( + //it gets it's own chunk name because it's huge and rarely used + /* webpackChunkName: "ay-report-edit" */ "./views/ay-report-edit.vue" + ) + }, { path: "/adm-attachments", name: "adm-attachments", @@ -515,19 +523,12 @@ export default new Router({ import(/* webpackChunkName: "ay-common" */ "./views/ay-history.vue") }, { - path: "/report/:ayatype/:recordid", + path: "/report/:ayatype/:recordid", //This is the route to immediately render a report, maybe it shouldn't be a route but rather just a command from the gzapi area name: "ay-report", component: () => import(/* webpackChunkName: "ay-common" */ "./views/ay-report.vue") }, - { - path: "/report-edit/:recordid", - name: "ay-report-edit", - component: () => - import( - /* webpackChunkName: "ay-report-edit" */ "./views/ay-report-edit.vue" - ) - }, + //TEST TEST TEST TEST TEST { diff --git a/ayanova/src/views/ay-report-edit.vue b/ayanova/src/views/ay-report-edit.vue index afc90d52..c77f1a6e 100644 --- a/ayanova/src/views/ay-report-edit.vue +++ b/ayanova/src/views/ay-report-edit.vue @@ -140,6 +140,14 @@ import * as monaco from "monaco-editor"; Report list UI Report list ui IMPORT option +Stock reports? Undeleteable? +(duplicate set of stock reports but set to inactive just in case?) + +router.js has this reference but it's now no longer required AFAICT: + path: "/report/:ayatype/:recordid", //This is the route to immediately render a report, maybe it shouldn't be a route but rather just a command from the gzapi area + name: "ay-report", + Can probably delete that (signature?) + Logo as helper in handlebars? that would be easy peasy I think if it's supported Make up sample reports for widget that show off the basics including logo etc