Skip to content

Commit f377181

Browse files
committed
Fix reactivity of user options menu display when its config changes
1 parent bb2bc4b commit f377181

36 files changed

+36
-0
lines changed

src/components/vue-ui-3d-bar.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ function prepareConfig() {
9696
9797
watch(() => props.config, (_newCfg) => {
9898
FINAL_CONFIG.value = prepareConfig();
99+
userOptionsVisible.value = !FINAL_CONFIG.value.showOnChartHover;
99100
prepareChart();
100101
titleStep.value += 1;
101102
tableStep.value += 1;

src/components/vue-ui-age-pyramid.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ function prepareConfig() {
9595
9696
watch(() => props.config, (_newCfg) => {
9797
FINAL_CONFIG.value = prepareConfig();
98+
userOptionsVisible.value = !FINAL_CONFIG.value.showOnChartHover;
9899
prepareChart();
99100
titleStep.value += 1;
100101
tableStep.value += 1;

src/components/vue-ui-bullet.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ const { userOptionsVisible, setUserOptionsVisibility, keepUserOptionState } = us
165165
166166
watch(() => props.config, (_newCfg) => {
167167
FINAL_CONFIG.value = prepareConfig();
168+
userOptionsVisible.value = !FINAL_CONFIG.value.showOnChartHover;
168169
prepareChart();
169170
titleStep.value += 1;
170171
}, { deep: true });

src/components/vue-ui-candlestick.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ function prepareConfig() {
122122
123123
watch(() => props.config, (_newCfg) => {
124124
FINAL_CONFIG.value = prepareConfig();
125+
userOptionsVisible.value = !FINAL_CONFIG.value.showOnChartHover;
125126
prepareChart();
126127
slicerStep.value += 1;
127128
titleStep.value += 1;

src/components/vue-ui-carousel-table.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ function prepareConfig() {
8787
8888
watch(() => props.config, (_newCfg) => {
8989
FINAL_CONFIG.value = prepareConfig();
90+
userOptionsVisible.value = !FINAL_CONFIG.value.showOnChartHover;
9091
prepareChart();
9192
}, { deep: true });
9293

src/components/vue-ui-chestnut.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ function prepareConfig() {
9191
9292
watch(() => props.config, (_newCfg) => {
9393
FINAL_CONFIG.value = prepareConfig();
94+
userOptionsVisible.value = !FINAL_CONFIG.value.showOnChartHover;
9495
prepareChart();
9596
}, { deep: true });
9697

src/components/vue-ui-donut-evolution.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ function prepareConfig() {
207207
208208
watch(() => props.config, (_newCfg) => {
209209
FINAL_CONFIG.value = prepareConfig();
210+
userOptionsVisible.value = !FINAL_CONFIG.value.showOnChartHover;
210211
prepareChart();
211212
titleStep.value += 1;
212213
tableStep.value += 1;

src/components/vue-ui-donut.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ const { userOptionsVisible, setUserOptionsVisibility, keepUserOptionState } = us
165165
166166
watch(() => props.config, (_newCfg) => {
167167
FINAL_CONFIG.value = prepareConfig();
168+
userOptionsVisible.value = !FINAL_CONFIG.value.showOnChartHover;
168169
prepareChart();
169170
titleStep.value += 1;
170171
tableStep.value += 1;

src/components/vue-ui-dumbbell.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ function prepareConfig() {
100100
101101
watch(() => props.config, (_newCfg) => {
102102
FINAL_CONFIG.value = prepareConfig();
103+
userOptionsVisible.value = !FINAL_CONFIG.value.showOnChartHover;
103104
prepareChart();
104105
titleStep.value += 1;
105106
tableStep.value += 1;

src/components/vue-ui-flow.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ function prepareConfig() {
105105
106106
watch(() => props.config, (_newCfg) => {
107107
FINAL_CONFIG.value = prepareConfig();
108+
userOptionsVisible.value = !FINAL_CONFIG.value.showOnChartHover;
108109
prepareChart();
109110
titleStep.value += 1;
110111
}, { deep: true });

0 commit comments

Comments
 (0)