This commit is contained in:
2020-06-03 22:21:52 +00:00
parent 27cb582fb6
commit 3ed6a02e96
17 changed files with 34 additions and 22 deletions

View File

@@ -328,7 +328,7 @@ export default {
labels: window.$gz._.map(this.db.topTables, "name"),
datasets: [
{
label: this.$ay.t("MetricTopTablesSize"),
label: this.$ay.t("MetricTopTablesSize"),
data: window.$gz._.map(this.db.topTables, "value"),
backgroundColor: getPalette(
this.db.topTables ? this.db.topTables.length : 3
@@ -503,14 +503,15 @@ function generateMenu(vm) {
icon: "fa-file-medical-alt",
title: vm.$ay.t("ServerMetrics"),
helpUrl: "form-ops-metrics",
hideSearch: true,
menuItems: [
{
title: vm.$ay.t("Copy"),
icon: "fa-copy",
surface: false,
key: FORM_KEY + ":copylog",
vm: vm
}
// {
// title: vm.$ay.t("Copy"),
// icon: "fa-copy",
// surface: false,
// key: FORM_KEY + ":copylog",
// vm: vm
// }
]
};
@@ -527,10 +528,10 @@ function clickHandler(menuItem) {
let m = window.$gz.menu.parseMenuItem(menuItem);
if (m.owner == FORM_KEY && !m.disabled) {
switch (m.key) {
case "copylog":
//put the log info on the clipboard:
window.$gz.util.copyToClipboard("SERVER LOG\n" + m.vm.log);
break;
// case "copylog":
// //put the log info on the clipboard:
// window.$gz.util.copyToClipboard("SERVER LOG\n" + m.vm.log);
// break;
default:
window.$gz.eventBus.$emit(
"notify-warning",