@@ -135,7 +142,8 @@
refreshDates: false,
statsReady: false,
statsData: [],
- canAutoRefresh: false
+ canAutoRefresh: false,
+ showChart: ["true", null].includes(localStorage.getItem(storageKeys.SHOW_LOGS_CHART))
};
},
computed: {
@@ -195,6 +203,16 @@
onDateFilterTypeChange(event) {
this.canAutoRefresh = event;
},
+ showStatChart() {
+ return this.charts && this.showChart;
+ },
+ onShowChartChange(value) {
+ this.showChart = value;
+ localStorage.setItem(storageKeys.SHOW_LOGS_CHART, value);
+ if (this.showStatChart) {
+ this.loadStats();
+ }
+ },
refresh() {
this.refreshDates = !this.refreshDates;
this.load();
@@ -287,4 +305,4 @@
}
}
}
-
+
\ No newline at end of file
diff --git a/ui/src/utils/constants.js b/ui/src/utils/constants.js
index 87aa2dc912..217ab86ef6 100644
--- a/ui/src/utils/constants.js
+++ b/ui/src/utils/constants.js
@@ -31,6 +31,8 @@ export const storageKeys = {
SELECTED_TENANT: "selectedTenant",
EXECUTE_FLOW_BEHAVIOUR: "executeFlowBehaviour",
SHOW_CHART: "showChart",
+ SHOW_FLOWS_CHART: "showFlowsChart",
+ SHOW_LOGS_CHART: "showLogsChart",
DEFAULT_NAMESPACE: "defaultNamespace",
LATEST_NAMESPACE: "latestNamespace",
PAGINATION_SIZE: "paginationSize",