Merge pull request #1058 from daniila/plot_config_select_fix

fix select values updating with delay
This commit is contained in:
Matthias 2022-12-21 07:17:41 +01:00 committed by GitHub
commit fb5ba3df9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,10 +30,10 @@ export const usePlotConfigStore = defineStore('plotConfig', {
this.plotConfigName = plotConfigName; this.plotConfigName = plotConfigName;
storePlotConfigName(plotConfigName); storePlotConfigName(plotConfigName);
}, },
plotConfigChanged() { plotConfigChanged(plotConfigName = '') {
console.log('plotConfigChanged'); console.log('plotConfigChanged');
this.setPlotConfigName(plotConfigName ? plotConfigName : this.plotConfigName);
this.plotConfig = getCustomPlotConfig(this.plotConfigName); this.plotConfig = getCustomPlotConfig(this.plotConfigName);
this.setPlotConfigName(this.plotConfigName);
}, },
setPlotConfig(plotConfig: PlotConfig) { setPlotConfig(plotConfig: PlotConfig) {
console.log('emit...'); console.log('emit...');