mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-10 10:21:55 +00:00
Set plotconfig name in vuex correctly
This commit is contained in:
parent
b6ffbc512f
commit
a8cba2538d
|
@ -22,7 +22,7 @@
|
|||
<b-checkbox v-model="useUTC" title="Use UTC for graph">useUtc</b-checkbox>
|
||||
</div>
|
||||
<div class="col-mb-2 mr-3">
|
||||
<b-button size="sm" title="Plot configurator" @click="showConfigurator"> ⚙ </b-button>
|
||||
<b-button size="sm" title="Plot configurator" @click="showConfigurator">⚙</b-button>
|
||||
</div>
|
||||
</div>
|
||||
<CandleChart
|
||||
|
@ -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