This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user