mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-27 05:25:17 +00:00
Use correct default name
This commit is contained in:
parent
009a23f32e
commit
154e9fed3d
|
@ -195,6 +195,8 @@ export default class PlotConfigurator extends Vue {
|
||||||
|
|
||||||
@ftbot.Mutation updatePlotConfigName!: (plotConfigName: string) => void;
|
@ftbot.Mutation updatePlotConfigName!: (plotConfigName: string) => void;
|
||||||
|
|
||||||
|
@ftbot.State('plotConfigName') usedPlotConfigName!: string;
|
||||||
|
|
||||||
get plotConfigJson() {
|
get plotConfigJson() {
|
||||||
return JSON.stringify(this.plotConfig, null, 2);
|
return JSON.stringify(this.plotConfig, null, 2);
|
||||||
}
|
}
|
||||||
|
@ -230,6 +232,7 @@ export default class PlotConfigurator extends Vue {
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
this.plotConfig = this.value;
|
this.plotConfig = this.value;
|
||||||
|
this.plotConfigName = this.usedPlotConfigName;
|
||||||
}
|
}
|
||||||
|
|
||||||
newColor() {
|
newColor() {
|
||||||
|
|
|
@ -4,7 +4,7 @@ const PLOT_CONFIG = 'ft_custom_plot_config';
|
||||||
const PLOT_CONFIG_NAME = 'ft_selected_plot_config';
|
const PLOT_CONFIG_NAME = 'ft_selected_plot_config';
|
||||||
|
|
||||||
export function loadPlotConfigName(): string {
|
export function loadPlotConfigName(): string {
|
||||||
return localStorage.getItem(PLOT_CONFIG_NAME) || '';
|
return localStorage.getItem(PLOT_CONFIG_NAME) || 'default';
|
||||||
}
|
}
|
||||||
|
|
||||||
export function storePlotConfigName(plotConfigName: string): void {
|
export function storePlotConfigName(plotConfigName: string): void {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user