This commit is contained in:
2020-10-08 19:22:57 +00:00
parent 724d652682
commit 5a9755fb78
2 changed files with 8 additions and 3 deletions

View File

@@ -317,13 +317,13 @@ export default {
// These labels appear in the legend and in the tooltips when hovering different arcs
//_.map(users, 'user');
//de-lodash
// labels: window.$gz._.map(this.db.topTables, "name"),
// labels: window.$gz. _.map(this.db.topTables, "name"),
labels: this.db.topTables.map(z => z.name),
datasets: [
{
label: this.$ay.t("MetricTopTablesSize"),
//de-lodash
// data: window.$gz._.map(this.db.topTables, "value"),
// data: window.$gz. _.map(this.db.topTables, "value"),
data: this.db.topTables.map(z => z.value),
backgroundColor: getPalette(
this.db.topTables ? this.db.topTables.length : 3

View File

@@ -437,7 +437,12 @@ export default {
//notify not found error then navigate backwards
window.$gz.eventBus.$emit("notify-error", vm.$ay.t("ErrorAPI2010"));
// navigate backwards
window.$gz._.delay(function() {
//de-lodash
// window.$gz._.delay(function() {
// vm.$router.go(-1);
// }, 2000);
setTimeout(function() {
vm.$router.go(-1);
}, 2000);
}