We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3f4358 commit ab027fbCopy full SHA for ab027fb
src/components/inspector/variables-to-submit.vue
@@ -251,8 +251,13 @@ export default {
251
this.$emit('change', []);
252
}
253
},
254
- isEnabled(newValue) {
255
- if (!newValue) {
+ isEnabled(newValue, oldValue) {
+ if (newValue && !oldValue) {
256
+ // When enabled for the first time, select all variables
257
+ this.selectedVariables = [...this.availableVariables];
258
+ this.$emit('input', this.selectedVariables);
259
+ this.$emit('change', this.selectedVariables);
260
+ } else if (!newValue) {
261
// When disabled, clear selection to submit all variables
262
this.selectedVariables = [];
263
this.$emit('input', []);
0 commit comments