removed standalone wiki and attachments forms and menu links

This commit is contained in:
2020-04-19 21:59:58 +00:00
parent 128332eb19
commit bdd2fda823
4 changed files with 27 additions and 80 deletions

View File

@@ -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",

View File

@@ -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",

View File

@@ -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>

View File

@@ -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>