Use correct default name

This commit is contained in:
Matthias 2020-08-08 15:25:58 +02:00
parent 009a23f32e
commit 154e9fed3d
2 changed files with 4 additions and 1 deletions

View File

@ -195,6 +195,8 @@ export default class PlotConfigurator extends Vue {
@ftbot.Mutation updatePlotConfigName!: (plotConfigName: string) => void;
@ftbot.State('plotConfigName') usedPlotConfigName!: string;
get plotConfigJson() {
return JSON.stringify(this.plotConfig, null, 2);
}
@ -230,6 +232,7 @@ export default class PlotConfigurator extends Vue {
mounted() {
this.plotConfig = this.value;
this.plotConfigName = this.usedPlotConfigName;
}
newColor() {

View File

@ -4,7 +4,7 @@ const PLOT_CONFIG = 'ft_custom_plot_config';
const PLOT_CONFIG_NAME = 'ft_selected_plot_config';
export function loadPlotConfigName(): string {
return localStorage.getItem(PLOT_CONFIG_NAME) || '';
return localStorage.getItem(PLOT_CONFIG_NAME) || 'default';
}
export function storePlotConfigName(plotConfigName: string): void {