removed standalone wiki and attachments forms and menu links
This commit is contained in:
@@ -54,19 +54,19 @@ export default {
|
|||||||
//Not utility type objects like datalist etc
|
//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
|
//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) {
|
if (isCoreBizObject) {
|
||||||
vm.appBar.menuItems.push({
|
// vm.appBar.menuItems.push({
|
||||||
title: window.$gz.translation.get("Attachments"),
|
// title: window.$gz.translation.get("Attachments"),
|
||||||
icon: "fa-paperclip",
|
// icon: "fa-paperclip",
|
||||||
key: "app:attachments",
|
// key: "app:attachments",
|
||||||
data: { ayaType: formAyaType, recordId: formRecordId }
|
// data: { ayaType: formAyaType, recordId: formRecordId }
|
||||||
});
|
// });
|
||||||
|
|
||||||
vm.appBar.menuItems.push({
|
// vm.appBar.menuItems.push({
|
||||||
title: window.$gz.translation.get("WikiPage"),
|
// title: window.$gz.translation.get("WikiPage"),
|
||||||
icon: "fa-feather",
|
// icon: "fa-feather",
|
||||||
key: "app:wiki",
|
// key: "app:wiki",
|
||||||
data: { ayaType: formAyaType, recordId: formRecordId }
|
// data: { ayaType: formAyaType, recordId: formRecordId }
|
||||||
});
|
// });
|
||||||
|
|
||||||
//"Review" was follow up type of schedule marker
|
//"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
|
//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 }
|
params: { ayatype: item.data }
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case "attachments":
|
// case "attachments":
|
||||||
vm.$router.push({
|
// vm.$router.push({
|
||||||
name: "ay-attachments",
|
// name: "ay-attachments",
|
||||||
params: { ayatype: item.data.ayaType, recordid: item.data.recordId }
|
// params: { ayatype: item.data.ayaType, recordid: item.data.recordId }
|
||||||
});
|
// });
|
||||||
break;
|
// break;
|
||||||
case "wiki":
|
// case "wiki":
|
||||||
vm.$router.push({
|
// vm.$router.push({
|
||||||
name: "ay-wiki",
|
// name: "ay-wiki",
|
||||||
params: { ayatype: item.data.ayaType, recordid: item.data.recordId }
|
// params: { ayatype: item.data.ayaType, recordid: item.data.recordId }
|
||||||
});
|
// });
|
||||||
break;
|
// break;
|
||||||
case "review":
|
case "review":
|
||||||
vm.$router.push({
|
vm.$router.push({
|
||||||
name: "ay-review",
|
name: "ay-review",
|
||||||
|
|||||||
@@ -35,10 +35,10 @@ const scrollBehavior = function(to, from, savedPosition) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// eslint-disable-next-line
|
// 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
|
// check if any matched route config has meta that requires scrolling to top
|
||||||
// eslint-disable-next-line
|
// 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,
|
// coords will be used if no selector is provided,
|
||||||
// or if the selector didn't match any element.
|
// or if the selector didn't match any element.
|
||||||
position.x = 0;
|
position.x = 0;
|
||||||
@@ -430,18 +430,7 @@ export default new Router({
|
|||||||
/* webpackChunkName: "ay-common" */ "./views/ay-data-list-view.vue"
|
/* 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",
|
path: "/review/:ayatype/:recordid",
|
||||||
name: "ay-review",
|
name: "ay-review",
|
||||||
|
|||||||
@@ -1,21 +0,0 @@
|
|||||||
<template>
|
|
||||||
<UnderConstruction />
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import UnderConstruction from "../components/underconstruction.vue";
|
|
||||||
|
|
||||||
export default {
|
|
||||||
components: {
|
|
||||||
UnderConstruction
|
|
||||||
},
|
|
||||||
beforeCreate() {
|
|
||||||
window.$gz.eventBus.$emit("menu-change", {
|
|
||||||
isMain: true,
|
|
||||||
icon: "fa-paperclip",
|
|
||||||
title: this.$ay.t("Attachments"),
|
|
||||||
helpUrl: "form-ay-attachments"
|
|
||||||
});
|
|
||||||
}
|
|
||||||
};
|
|
||||||
</script>
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
<template>
|
|
||||||
<UnderConstruction />
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import UnderConstruction from "../components/underconstruction.vue";
|
|
||||||
|
|
||||||
export default {
|
|
||||||
components: {
|
|
||||||
UnderConstruction
|
|
||||||
},
|
|
||||||
beforeCreate() {
|
|
||||||
window.$gz.eventBus.$emit("menu-change", {
|
|
||||||
isMain: true,
|
|
||||||
icon: "fa-feather",
|
|
||||||
title: this.$ay.t("WikiPage"),
|
|
||||||
helpUrl: "form-ay-wiki"
|
|
||||||
});
|
|
||||||
}
|
|
||||||
};
|
|
||||||
</script>
|
|
||||||
Reference in New Issue
Block a user