Rename plotconfigstorage function

This commit is contained in:
Matthias 2020-08-07 06:58:47 +02:00
parent 2d8e65b675
commit 08fa402df4
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@ import { PlotConfig, EMPTY_PLOTCONFIG } from '@/types';
const PLOT_CONFIG = 'ft_custom_plot_config'; const PLOT_CONFIG = 'ft_custom_plot_config';
export function saveCustomPlotConfig(plotConfig: PlotConfig) { export function storeCustomPlotConfig(plotConfig: PlotConfig) {
localStorage.setItem(PLOT_CONFIG, JSON.stringify(plotConfig)); localStorage.setItem(PLOT_CONFIG, JSON.stringify(plotConfig));
} }

View File

@ -14,7 +14,7 @@ import {
AvailablePairPayload, AvailablePairPayload,
} from '@/types'; } from '@/types';
import { saveCustomPlotConfig } from '@/shared/storage'; import { storeCustomPlotConfig } from '@/shared/storage';
import { showAlert } from './alerts'; import { showAlert } from './alerts';
export enum BotStoreGetters { export enum BotStoreGetters {
@ -119,7 +119,7 @@ export default {
}, },
saveCustomPlotConfig(state, plotConfig: PlotConfig) { saveCustomPlotConfig(state, plotConfig: PlotConfig) {
state.customPlotConfig = plotConfig; state.customPlotConfig = plotConfig;
saveCustomPlotConfig(plotConfig); storeCustomPlotConfig(plotConfig);
}, },
}, },
actions: { actions: {