customer docs

This commit is contained in:
2022-03-31 22:35:14 +00:00
parent ec185874fd
commit 4cd82e0214
4 changed files with 24 additions and 5 deletions

View File

@@ -272,9 +272,9 @@ export default {
navItems() {
return this.$store.state.navItems;
},
helpUrl() {
return window.$gz.api.helpUrl();
},
// helpUrl() {
// return window.$gz.api.helpUrl();
// },
titleDisplay() {
if (this.appBar.title == null || this.appBar.title == "") {
return null;

View File

@@ -295,6 +295,16 @@ export default {
}
return window.location.protocol + "//" + window.location.host + "/docs/";
},
helpUrlCustomer() {
if (
window.$gz.dev &&
window.location.hostname == "localhost" &&
window.location.port == "8080"
) {
return "http://localhost:7575/cust/";
}
return window.location.protocol + "//" + window.location.host + "/cust/";
},
/////////////////////////////
// Just the server itself
// used by profiler etc

View File

@@ -314,8 +314,17 @@ export default {
if (!item.disabled && item.owner == "app") {
switch (item.key) {
case "help":
window.open(window.$gz.api.helpUrl() + item.data, "_blank");
if (item.data.includes("~customer~")) {
window.open(
window.$gz.api.helpUrlCustomer() +
item.data.replace("~customer~", ""),
"_blank"
);
} else {
window.open(window.$gz.api.helpUrl() + item.data, "_blank");
}
break;
case "search":
vm.$router.push({
name: "home-search",

View File

@@ -74,7 +74,7 @@ function generateMenu(vm) {
isMain: true,
icon: "$ayiConciergeBell",
title: "CustomerServiceRequestList",
helpUrl: "customer-csr",
helpUrl: "~customer~customer-csr",
hideSearch: true,
menuItems: [],
formData: {