This commit is contained in:
@@ -840,3 +840,6 @@ BUILD 8.0.0-beta.1-rc2 CHANGES OF NOTE
|
|||||||
- Improved the "next steps" section of the install guides for each platform in the docs
|
- Improved the "next steps" section of the install guides for each platform in the docs
|
||||||
- license docs page improvements and clarifications (case 4119)
|
- license docs page improvements and clarifications (case 4119)
|
||||||
- Improved seeder work order generation to be more natural with older wo having smaller numbers and most recent having largest numbers
|
- Improved seeder work order generation to be more natural with older wo having smaller numbers and most recent having largest numbers
|
||||||
|
- added copy to clipboard to ops server information page
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -99,6 +99,39 @@ export default {
|
|||||||
// window.$gz.eventBus.$emit("notify-error", this.$ay.t("JobFailed"));
|
// window.$gz.eventBus.$emit("notify-error", this.$ay.t("JobFailed"));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
async copyFullTechSupportInfo() {
|
||||||
|
const vm = this;
|
||||||
|
window.$gz.form.deleteAllErrorBoxErrors(vm);
|
||||||
|
try {
|
||||||
|
const res = await window.$gz.api.get("server-state/tech-support-info");
|
||||||
|
if (res.error) {
|
||||||
|
if (res.error.code == "2010") {
|
||||||
|
window.$gz.form.handleObjectNotFound(vm);
|
||||||
|
}
|
||||||
|
vm.formState.serverError = res.error;
|
||||||
|
window.$gz.form.setErrorBoxErrors(vm);
|
||||||
|
} else {
|
||||||
|
if (res) {
|
||||||
|
window.$gz.util.copyToClipboard(res.data);
|
||||||
|
//vm.log = res;
|
||||||
|
} else {
|
||||||
|
//vm.log = vm.$ay.t("NoData");
|
||||||
|
}
|
||||||
|
window.$gz.form.setFormState({
|
||||||
|
vm: vm,
|
||||||
|
dirty: false,
|
||||||
|
valid: true,
|
||||||
|
loading: false
|
||||||
|
});
|
||||||
|
}
|
||||||
|
} catch (error) {
|
||||||
|
window.$gz.form.setFormState({
|
||||||
|
vm: vm,
|
||||||
|
loading: false
|
||||||
|
});
|
||||||
|
window.$gz.errorHandler.handleFormError(error, vm);
|
||||||
|
}
|
||||||
|
},
|
||||||
async getDataFromApi() {
|
async getDataFromApi() {
|
||||||
const vm = this;
|
const vm = this;
|
||||||
if (!vm.selectedLog) {
|
if (!vm.selectedLog) {
|
||||||
@@ -163,6 +196,12 @@ function generateMenu(vm) {
|
|||||||
icon: "$ayiFileDownload",
|
icon: "$ayiFileDownload",
|
||||||
key: FORM_KEY + ":download",
|
key: FORM_KEY + ":download",
|
||||||
vm: vm
|
vm: vm
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "CopySupportInfo",
|
||||||
|
icon: "$ayiCopy",
|
||||||
|
key: FORM_KEY + ":copyFullTechSupportInfo",
|
||||||
|
vm: vm
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
@@ -186,6 +225,9 @@ function clickHandler(menuItem) {
|
|||||||
case "download":
|
case "download":
|
||||||
m.vm.downloadLog();
|
m.vm.downloadLog();
|
||||||
break;
|
break;
|
||||||
|
case "copyFullTechSupportInfo":
|
||||||
|
m.vm.copyFullTechSupportInfo();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
window.$gz.eventBus.$emit(
|
window.$gz.eventBus.$emit(
|
||||||
"notify-warning",
|
"notify-warning",
|
||||||
@@ -211,7 +253,8 @@ async function fetchTranslatedText() {
|
|||||||
await window.$gz.translation.cacheTranslations([
|
await window.$gz.translation.cacheTranslations([
|
||||||
"OpsTestJob",
|
"OpsTestJob",
|
||||||
"Log",
|
"Log",
|
||||||
"Download"
|
"Download",
|
||||||
|
"CopySupportInfo"
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user