diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index ad671c18..6e5d09a7 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -44,8 +44,6 @@ CURRENT TODOs @@@@@@@@@@@ ROADMAP STAGE 1 and 2: -todo: widget edit form, is it using all the latest thinking on Created, beforeCreate, initform calls to async functions etc? - - compare and contrast with DataListview editor form which is fully up to date. todo: widget edit, NEW button? (v7 has a new button for every type of record?? Save and new??) diff --git a/ayanova/src/api/initialize.js b/ayanova/src/api/initialize.js index 0ace4385..da15be7a 100644 --- a/ayanova/src/api/initialize.js +++ b/ayanova/src/api/initialize.js @@ -682,7 +682,7 @@ export default function initialize() { addNavItem( window.$gz.locale.get("WidgetList"), "vial", - "/test-widgets", + "/widgets", [], key++ ); diff --git a/ayanova/src/api/open-object-handler.js b/ayanova/src/api/open-object-handler.js index c164f9c7..70881cc6 100644 --- a/ayanova/src/api/open-object-handler.js +++ b/ayanova/src/api/open-object-handler.js @@ -14,7 +14,7 @@ export default { switch (tid.type) { case ayatype.Widget: vm.$router.push({ - name: "inventory-widget-edit", + name: "widget-edit", params: { recordid: tid.id } }); break; diff --git a/ayanova/src/router.js b/ayanova/src/router.js index ad5c1a4a..9cd9cab6 100644 --- a/ayanova/src/router.js +++ b/ayanova/src/router.js @@ -434,20 +434,18 @@ export default new Router({ { //NEW TEST GZ DATA TABLE - path: "/test-widgets", - name: "test-widgets", + path: "/widgets", + name: "widget-list", component: () => - import(/* webpackChunkName: "test" */ "./views/test-widgets.vue") + import(/* webpackChunkName: "test" */ "./views/widgets.vue") }, { //TEST WIDGET EDIT FORM - path: "/inventory/widget/edit/:recordid", - name: "inventory-widget-edit", + path: "/widgets/:recordid", + name: "widget-edit", component: () => - import( - /* webpackChunkName: "test" */ "./views/test-inventory-widget-edit.vue" - ) + import(/* webpackChunkName: "test" */ "./views/widget.vue") }, { //404 404 404 404 404 404 404 404 404 404 404 404 404 404 404 404 404 404 404 404 404 404 404 404 diff --git a/ayanova/src/views/test-inventory-widget-edit.vue b/ayanova/src/views/widget.vue similarity index 99% rename from ayanova/src/views/test-inventory-widget-edit.vue rename to ayanova/src/views/widget.vue index ce4704f6..6b97b670 100644 --- a/ayanova/src/views/test-inventory-widget-edit.vue +++ b/ayanova/src/views/widget.vue @@ -201,7 +201,7 @@ /* Xeslint-disable */ //////////////////////////////////////////////////////////////////////////////////////////////////////////// //Illegal1 = O0 -const FORM_KEY = "inventory-widget-edit"; +const FORM_KEY = "widget-edit"; const API_BASE_URL = "Widget/"; const FORM_CUSTOM_TEMPLATE_KEY = "Widget"; diff --git a/ayanova/src/views/test-widgets.vue b/ayanova/src/views/widgets.vue similarity index 95% rename from ayanova/src/views/test-widgets.vue rename to ayanova/src/views/widgets.vue index da5c0156..081a862c 100644 --- a/ayanova/src/views/test-widgets.vue +++ b/ayanova/src/views/widgets.vue @@ -1,6 +1,6 @@