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
|
// These labels appear in the legend and in the tooltips when hovering different arcs
|
||||||
//_.map(users, 'user');
|
//_.map(users, 'user');
|
||||||
//de-lodash
|
//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),
|
labels: this.db.topTables.map(z => z.name),
|
||||||
datasets: [
|
datasets: [
|
||||||
{
|
{
|
||||||
label: this.$ay.t("MetricTopTablesSize"),
|
label: this.$ay.t("MetricTopTablesSize"),
|
||||||
//de-lodash
|
//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),
|
data: this.db.topTables.map(z => z.value),
|
||||||
backgroundColor: getPalette(
|
backgroundColor: getPalette(
|
||||||
this.db.topTables ? this.db.topTables.length : 3
|
this.db.topTables ? this.db.topTables.length : 3
|
||||||
|
|||||||
@@ -437,7 +437,12 @@ export default {
|
|||||||
//notify not found error then navigate backwards
|
//notify not found error then navigate backwards
|
||||||
window.$gz.eventBus.$emit("notify-error", vm.$ay.t("ErrorAPI2010"));
|
window.$gz.eventBus.$emit("notify-error", vm.$ay.t("ErrorAPI2010"));
|
||||||
// navigate backwards
|
// navigate backwards
|
||||||
window.$gz._.delay(function() {
|
//de-lodash
|
||||||
|
// window.$gz._.delay(function() {
|
||||||
|
// vm.$router.go(-1);
|
||||||
|
// }, 2000);
|
||||||
|
|
||||||
|
setTimeout(function() {
|
||||||
vm.$router.go(-1);
|
vm.$router.go(-1);
|
||||||
}, 2000);
|
}, 2000);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user