mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-23 11:35:14 +00:00
Rename plotconfigstorage function
This commit is contained in:
parent
2d8e65b675
commit
08fa402df4
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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: {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user