From 08fa402df4249afdef9e6a380ad0874b292da272 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 7 Aug 2020 06:58:47 +0200 Subject: [PATCH] Rename plotconfigstorage function --- src/shared/storage.ts | 2 +- src/store/modules/ftbot.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/shared/storage.ts b/src/shared/storage.ts index d469377b..c1bf8147 100644 --- a/src/shared/storage.ts +++ b/src/shared/storage.ts @@ -2,7 +2,7 @@ import { PlotConfig, EMPTY_PLOTCONFIG } from '@/types'; const PLOT_CONFIG = 'ft_custom_plot_config'; -export function saveCustomPlotConfig(plotConfig: PlotConfig) { +export function storeCustomPlotConfig(plotConfig: PlotConfig) { localStorage.setItem(PLOT_CONFIG, JSON.stringify(plotConfig)); } diff --git a/src/store/modules/ftbot.ts b/src/store/modules/ftbot.ts index 4b79f9e3..a03bd38d 100644 --- a/src/store/modules/ftbot.ts +++ b/src/store/modules/ftbot.ts @@ -14,7 +14,7 @@ import { AvailablePairPayload, } from '@/types'; -import { saveCustomPlotConfig } from '@/shared/storage'; +import { storeCustomPlotConfig } from '@/shared/storage'; import { showAlert } from './alerts'; export enum BotStoreGetters { @@ -119,7 +119,7 @@ export default { }, saveCustomPlotConfig(state, plotConfig: PlotConfig) { state.customPlotConfig = plotConfig; - saveCustomPlotConfig(plotConfig); + storeCustomPlotConfig(plotConfig); }, }, actions: {