This commit is contained in:
@@ -839,4 +839,7 @@ BUILD 8.0.0-beta.1-rc2 CHANGES OF NOTE
|
||||
- did a walk-through and improved the desktop linux installation guide
|
||||
- Improved the "next steps" section of the install guides for each platform in the docs
|
||||
- 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"));
|
||||
}
|
||||
},
|
||||
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() {
|
||||
const vm = this;
|
||||
if (!vm.selectedLog) {
|
||||
@@ -163,6 +196,12 @@ function generateMenu(vm) {
|
||||
icon: "$ayiFileDownload",
|
||||
key: FORM_KEY + ":download",
|
||||
vm: vm
|
||||
},
|
||||
{
|
||||
title: "CopySupportInfo",
|
||||
icon: "$ayiCopy",
|
||||
key: FORM_KEY + ":copyFullTechSupportInfo",
|
||||
vm: vm
|
||||
}
|
||||
]
|
||||
};
|
||||
@@ -186,6 +225,9 @@ function clickHandler(menuItem) {
|
||||
case "download":
|
||||
m.vm.downloadLog();
|
||||
break;
|
||||
case "copyFullTechSupportInfo":
|
||||
m.vm.copyFullTechSupportInfo();
|
||||
break;
|
||||
default:
|
||||
window.$gz.eventBus.$emit(
|
||||
"notify-warning",
|
||||
@@ -211,7 +253,8 @@ async function fetchTranslatedText() {
|
||||
await window.$gz.translation.cacheTranslations([
|
||||
"OpsTestJob",
|
||||
"Log",
|
||||
"Download"
|
||||
"Download",
|
||||
"CopySupportInfo"
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user