mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-27 05:25:17 +00:00
Set plotconfig name in vuex correctly
This commit is contained in:
parent
b6ffbc512f
commit
a8cba2538d
|
@ -64,6 +64,8 @@ export default class CandleChartContainer extends Vue {
|
|||
|
||||
@ftbot.State availablePlotConfigNames!: Array<string>;
|
||||
|
||||
@ftbot.Action setPlotConfigName;
|
||||
|
||||
get datasetColumns() {
|
||||
return this.dataset ? this.dataset.columns : [];
|
||||
}
|
||||
|
@ -74,7 +76,9 @@ export default class CandleChartContainer extends Vue {
|
|||
}
|
||||
|
||||
plotConfigChanged() {
|
||||
console.log('plotConfigChanged');
|
||||
this.plotConfig = getCustomPlotConfig(this.plotConfigName);
|
||||
this.setPlotConfigName(this.plotConfigName);
|
||||
}
|
||||
|
||||
showConfigurator() {
|
||||
|
|
|
@ -223,6 +223,9 @@ export default {
|
|||
.then((result) => commit('updatePlotConfig', result.data))
|
||||
.catch(console.error);
|
||||
},
|
||||
setPlotConfigName({ commit }, plotConfigName: string) {
|
||||
commit('updatePlotConfigName', plotConfigName);
|
||||
},
|
||||
getStrategyList({ commit }) {
|
||||
return api
|
||||
.get('/strategies')
|
||||
|
|
Loading…
Reference in New Issue
Block a user