diff --git a/ayanova/src/api/gzmenu.js b/ayanova/src/api/gzmenu.js index 7caeb509..c72c9db7 100644 --- a/ayanova/src/api/gzmenu.js +++ b/ayanova/src/api/gzmenu.js @@ -54,19 +54,19 @@ export default { //Not utility type objects like datalist etc //there will be few exceptions so they will be coded in later if needed but assume anything with an id and a type if (isCoreBizObject) { - vm.appBar.menuItems.push({ - title: window.$gz.translation.get("Attachments"), - icon: "fa-paperclip", - key: "app:attachments", - data: { ayaType: formAyaType, recordId: formRecordId } - }); + // vm.appBar.menuItems.push({ + // title: window.$gz.translation.get("Attachments"), + // icon: "fa-paperclip", + // key: "app:attachments", + // data: { ayaType: formAyaType, recordId: formRecordId } + // }); - vm.appBar.menuItems.push({ - title: window.$gz.translation.get("WikiPage"), - icon: "fa-feather", - key: "app:wiki", - data: { ayaType: formAyaType, recordId: formRecordId } - }); + // vm.appBar.menuItems.push({ + // title: window.$gz.translation.get("WikiPage"), + // icon: "fa-feather", + // key: "app:wiki", + // data: { ayaType: formAyaType, recordId: formRecordId } + // }); //"Review" was follow up type of schedule marker //basically it's now a "Reminder" type of object but it's own thing with separate collection @@ -242,18 +242,18 @@ export default { params: { ayatype: item.data } }); break; - case "attachments": - vm.$router.push({ - name: "ay-attachments", - params: { ayatype: item.data.ayaType, recordid: item.data.recordId } - }); - break; - case "wiki": - vm.$router.push({ - name: "ay-wiki", - params: { ayatype: item.data.ayaType, recordid: item.data.recordId } - }); - break; + // case "attachments": + // vm.$router.push({ + // name: "ay-attachments", + // params: { ayatype: item.data.ayaType, recordid: item.data.recordId } + // }); + // break; + // case "wiki": + // vm.$router.push({ + // name: "ay-wiki", + // params: { ayatype: item.data.ayaType, recordid: item.data.recordId } + // }); + // break; case "review": vm.$router.push({ name: "ay-review", diff --git a/ayanova/src/router.js b/ayanova/src/router.js index 37c46b58..e67c75fe 100644 --- a/ayanova/src/router.js +++ b/ayanova/src/router.js @@ -35,10 +35,10 @@ const scrollBehavior = function(to, from, savedPosition) { } // eslint-disable-next-line - return new Promise(resolve => { + return new Promise((resolve) => { // check if any matched route config has meta that requires scrolling to top // eslint-disable-next-line - if (to.matched.some(m => m.meta.scrollToTop)) { + if (to.matched.some((m) => m.meta.scrollToTop)) { // coords will be used if no selector is provided, // or if the selector didn't match any element. position.x = 0; @@ -430,18 +430,7 @@ export default new Router({ /* webpackChunkName: "ay-common" */ "./views/ay-data-list-view.vue" ) }, - { - path: "/attachments/:ayatype/:recordid", - name: "ay-attachments", - component: () => - import(/* webpackChunkName: "ay-common" */ "./views/ay-attachments.vue") - }, - { - path: "/wiki/:ayatype/:recordid", - name: "ay-wiki", - component: () => - import(/* webpackChunkName: "ay-common" */ "./views/ay-wiki.vue") - }, + { path: "/review/:ayatype/:recordid", name: "ay-review", diff --git a/ayanova/src/views/ay-attachments.vue b/ayanova/src/views/ay-attachments.vue deleted file mode 100644 index 2c89043a..00000000 --- a/ayanova/src/views/ay-attachments.vue +++ /dev/null @@ -1,21 +0,0 @@ - - - diff --git a/ayanova/src/views/ay-wiki.vue b/ayanova/src/views/ay-wiki.vue deleted file mode 100644 index 52edf6d5..00000000 --- a/ayanova/src/views/ay-wiki.vue +++ /dev/null @@ -1,21 +0,0 @@ - - -