customer docs
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -74,7 +74,7 @@ function generateMenu(vm) {
|
||||
isMain: true,
|
||||
icon: "$ayiConciergeBell",
|
||||
title: "CustomerServiceRequestList",
|
||||
helpUrl: "customer-csr",
|
||||
helpUrl: "~customer~customer-csr",
|
||||
hideSearch: true,
|
||||
menuItems: [],
|
||||
formData: {
|
||||
|
||||
Reference in New Issue
Block a user