You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2021/06/23 01:14:56 UTC
[skywalking-rocketbot-ui] branch master updated: fix: update
default config (#511)
This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-rocketbot-ui.git
The following commit(s) were added to refs/heads/master by this push:
new 59b701e fix: update default config (#511)
59b701e is described below
commit 59b701e528f8b984d12c5fc5c2656c37c7a8129f
Author: Fine0830 <fi...@outlook.com>
AuthorDate: Wed Jun 23 09:14:46 2021 +0800
fix: update default config (#511)
---
src/store/modules/dashboard/dashboard-data-layout.ts | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/store/modules/dashboard/dashboard-data-layout.ts b/src/store/modules/dashboard/dashboard-data-layout.ts
index 02e45a4..bf69345 100644
--- a/src/store/modules/dashboard/dashboard-data-layout.ts
+++ b/src/store/modules/dashboard/dashboard-data-layout.ts
@@ -18,6 +18,7 @@
import { MutationTree } from 'vuex';
import { CompsTree } from '@/types/dashboard';
import * as types from './mutation-types';
+import { DASHBOARDTYPE } from '@/views/components/dashboard/constant';
export interface State {
current: number;
group: number;
@@ -117,12 +118,13 @@ const mutations: MutationTree<State> = {
window.localStorage.setItem('dashboard', JSON.stringify(state.tree));
},
[types.ADD_COMP](state: State) {
+ const type = state.tree[state.group].type;
const comp = {
width: 3,
title: 'Title',
height: 350,
entityType: 'Service',
- independentSelector: true,
+ independentSelector: type === DASHBOARDTYPE.METRIC ? true : false,
metricType: 'UNKNOWN',
};
state.tree[state.group].children[state.current].children.push(comp);