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.State availablePlotConfigNames!: Array<string>;
|
||||||
|
|
||||||
|
@ftbot.Action setPlotConfigName;
|
||||||
|
|
||||||
get datasetColumns() {
|
get datasetColumns() {
|
||||||
return this.dataset ? this.dataset.columns : [];
|
return this.dataset ? this.dataset.columns : [];
|
||||||
}
|
}
|
||||||
|
@ -74,7 +76,9 @@ export default class CandleChartContainer extends Vue {
|
||||||
}
|
}
|
||||||
|
|
||||||
plotConfigChanged() {
|
plotConfigChanged() {
|
||||||
|
console.log('plotConfigChanged');
|
||||||
this.plotConfig = getCustomPlotConfig(this.plotConfigName);
|
this.plotConfig = getCustomPlotConfig(this.plotConfigName);
|
||||||
|
this.setPlotConfigName(this.plotConfigName);
|
||||||
}
|
}
|
||||||
|
|
||||||
showConfigurator() {
|
showConfigurator() {
|
||||||
|
|
|
@ -223,6 +223,9 @@ export default {
|
||||||
.then((result) => commit('updatePlotConfig', result.data))
|
.then((result) => commit('updatePlotConfig', result.data))
|
||||||
.catch(console.error);
|
.catch(console.error);
|
||||||
},
|
},
|
||||||
|
setPlotConfigName({ commit }, plotConfigName: string) {
|
||||||
|
commit('updatePlotConfigName', plotConfigName);
|
||||||
|
},
|
||||||
getStrategyList({ commit }) {
|
getStrategyList({ commit }) {
|
||||||
return api
|
return api
|
||||||
.get('/strategies')
|
.get('/strategies')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user