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