mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-10 10:21:55 +00:00
Improve multiplot saving
This commit is contained in:
parent
062769f764
commit
009a23f32e
|
@ -34,7 +34,7 @@ import randomColor from '@/shared/randomColor';
|
|||
import { roundTimeframe } from '@/shared/timemath';
|
||||
import { timestampms } from '@/shared/formatters';
|
||||
import PlotConfigurator from '@/components/ftbot/PlotConfigurator.vue';
|
||||
import { loadCustomPlotConfig } from '@/shared/storage';
|
||||
import { loadCustomPlotConfig, loadPlotConfigName } from '@/shared/storage';
|
||||
|
||||
import 'echarts';
|
||||
|
||||
|
@ -70,7 +70,7 @@ export default class CandleChart extends Vue {
|
|||
sellData = [] as Array<number>[];
|
||||
|
||||
mounted() {
|
||||
this.plotConfig = loadCustomPlotConfig();
|
||||
this.plotConfig = loadCustomPlotConfig(loadPlotConfigName());
|
||||
}
|
||||
|
||||
showConfigurator() {
|
||||
|
|
|
@ -229,7 +229,6 @@ export default class PlotConfigurator extends Vue {
|
|||
}
|
||||
|
||||
mounted() {
|
||||
console.log('mounted');
|
||||
this.plotConfig = this.value;
|
||||
}
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ export function storePlotConfigName(plotConfigName: string): void {
|
|||
}
|
||||
|
||||
export function loadAllCustomPlotConfig(): PlotConfig {
|
||||
return JSON.parse(localStorage.getItem(PLOT_CONFIG) || JSON.stringify(EMPTY_PLOTCONFIG));
|
||||
return JSON.parse(localStorage.getItem(PLOT_CONFIG) || '{}');
|
||||
}
|
||||
|
||||
export function loadCustomPlotConfig(configName: string): PlotConfig {
|
||||
|
|
Loading…
Reference in New Issue
Block a user