rename plotconfig from strategy action

This commit is contained in:
Matthias 2020-08-07 06:57:05 +02:00
parent bcbd765ec2
commit 2d8e65b675
2 changed files with 3 additions and 3 deletions

View File

@ -152,7 +152,7 @@ export default class PlotConfigurator extends Vue {
return this.plotConfig; return this.plotConfig;
} }
@ftbot.Action getPlotConfig; @ftbot.Action getStrategyPlotConfig;
@ftbot.State strategyPlotConfig; @ftbot.State strategyPlotConfig;
@ -308,7 +308,7 @@ export default class PlotConfigurator extends Vue {
} }
async loadPlotConfigFromStrategy() { async loadPlotConfigFromStrategy() {
await this.getPlotConfig(); await this.getStrategyPlotConfig();
this.plotConfig = this.strategyPlotConfig; this.plotConfig = this.strategyPlotConfig;
} }
} }

View File

@ -195,7 +195,7 @@ export default {
reject(error); reject(error);
}); });
}, },
getPlotConfig({ commit }) { getStrategyPlotConfig({ commit }) {
return api return api
.get('/plot_config') .get('/plot_config')
.then((result) => commit('updatePlotConfig', result.data)) .then((result) => commit('updatePlotConfig', result.data))