mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-26 21:15:15 +00:00
parent
80d82a9b49
commit
11ac1f8aba
|
@ -37,6 +37,7 @@
|
|||
variant="primary"
|
||||
title="Add indicator to plot"
|
||||
size="sm"
|
||||
:disabled="addNewIndicator"
|
||||
@click="addNewIndicator = !addNewIndicator"
|
||||
>
|
||||
Add new indicator
|
||||
|
@ -54,6 +55,7 @@
|
|||
</div>
|
||||
|
||||
<PlotIndicator
|
||||
v-if="selIndicatorName || addNewIndicator"
|
||||
v-model="selIndicator"
|
||||
class="mt-1"
|
||||
:columns="columns"
|
||||
|
@ -162,7 +164,7 @@ export default class PlotConfigurator extends Vue {
|
|||
}
|
||||
|
||||
set selIndicator(newValue: Record<string, IndicatorConfig>) {
|
||||
console.log('newValue', newValue);
|
||||
// console.log('newValue', newValue);
|
||||
const name = Object.keys(newValue)[0];
|
||||
// this.currentPlotConfig[this.selIndicatorName] = { ...newValue[name] };
|
||||
// this.emitPlotConfig();
|
||||
|
@ -316,7 +318,7 @@ export default class PlotConfigurator extends Vue {
|
|||
}
|
||||
|
||||
savePlotConfig() {
|
||||
this.saveCustomPlotConfig({ [this.plotConfigName]: this.plotConfig });
|
||||
this.saveCustomPlotConfig({ [this.plotConfigNameLoc]: this.plotConfig });
|
||||
}
|
||||
|
||||
loadPlotConfig() {
|
||||
|
|
|
@ -45,12 +45,19 @@
|
|||
</b-input-group>
|
||||
</b-form-group>
|
||||
<div class="d-flex d-flex-columns d-flex">
|
||||
<b-button v-if="addNew" variant="primary" title="Add " size="sm" @click="emitIndicator">
|
||||
Add new indicator
|
||||
<b-button
|
||||
v-if="addNew"
|
||||
class="flex-grow-1"
|
||||
variant="primary"
|
||||
title="Add "
|
||||
size="sm"
|
||||
@click="emitIndicator"
|
||||
>
|
||||
Save indicator
|
||||
</b-button>
|
||||
<b-button
|
||||
v-if="addNew"
|
||||
class="ml-1"
|
||||
class="ml-1 flex-grow-1"
|
||||
variant="primary"
|
||||
title="Add "
|
||||
size="sm"
|
||||
|
@ -102,8 +109,10 @@ export default class PlotIndicator extends Vue {
|
|||
|
||||
@Watch('selColor')
|
||||
watchColor() {
|
||||
if (!this.addNew) {
|
||||
this.emitIndicator();
|
||||
}
|
||||
}
|
||||
|
||||
clickCancel() {
|
||||
this.cancelled = true;
|
||||
|
|
Loading…
Reference in New Issue
Block a user