mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-19 15:37:36 +00:00
update dashboard name
This commit is contained in:
parent
d78ca0cd4b
commit
f17560decc
@ -219,8 +219,8 @@ async function setMetricType(chart?: any) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function setDashboards() {
|
function setDashboards(type?: string) {
|
||||||
const { graph } = dashboardStore.selectedGrid;
|
const graph = type || dashboardStore.selectedGrid.graph;
|
||||||
const list = JSON.parse(sessionStorage.getItem("dashboards") || "[]");
|
const list = JSON.parse(sessionStorage.getItem("dashboards") || "[]");
|
||||||
const arr = list.reduce(
|
const arr = list.reduce(
|
||||||
(
|
(
|
||||||
@ -279,7 +279,7 @@ function changeChartType(item: Option) {
|
|||||||
defaultLen.value = 5;
|
defaultLen.value = 5;
|
||||||
}
|
}
|
||||||
setMetricType(graph);
|
setMetricType(graph);
|
||||||
setDashboards();
|
setDashboards(graph.type);
|
||||||
states.dashboardName = "";
|
states.dashboardName = "";
|
||||||
defaultLen.value = 10;
|
defaultLen.value = 10;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user