iRemove last 2 Mutations that've been directly used

This commit is contained in:
Matthias 2021-10-11 19:44:30 +02:00
parent ccd8944dc2
commit 2971f53c2c
2 changed files with 10 additions and 2 deletions

View File

@ -198,10 +198,10 @@ export default class PlotConfigurator extends Vue {
tempPlotConfigValid = true; tempPlotConfigValid = true;
@ftbot.Mutation saveCustomPlotConfig; @ftbot.Action saveCustomPlotConfig;
// eslint-disable-next-line @typescript-eslint/no-unused-vars // eslint-disable-next-line @typescript-eslint/no-unused-vars
@ftbot.Mutation updatePlotConfigName!: (plotConfigName: string) => void; @ftbot.Action updatePlotConfigName!: (plotConfigName: string) => void;
@ftbot.Getter [BotStoreGetters.plotConfigName]!: string; @ftbot.Getter [BotStoreGetters.plotConfigName]!: string;

View File

@ -105,6 +105,8 @@ export enum BotStoreActions {
refreshOnce = 'refreshOnce', refreshOnce = 'refreshOnce',
setDetailTrade = 'setDetailTrade', setDetailTrade = 'setDetailTrade',
setSelectedPair = 'setSelectedPair', setSelectedPair = 'setSelectedPair',
saveCustomPlotConfig = 'saveCustomPlotConfig',
updatePlotConfigName = 'updatePlotConfigName',
getTrades = 'getTrades', getTrades = 'getTrades',
getLocks = 'getLocks', getLocks = 'getLocks',
deleteLock = 'deleteLock', deleteLock = 'deleteLock',
@ -504,6 +506,12 @@ export function createBotSubStore(botId: string, botName: string) {
[BotStoreActions.setSelectedPair]({ commit }, pair: string) { [BotStoreActions.setSelectedPair]({ commit }, pair: string) {
commit('setSelectedPair', pair); commit('setSelectedPair', pair);
}, },
[BotStoreActions.saveCustomPlotConfig]({ commit }, plotConfig: PlotConfigStorage) {
commit('saveCustomPlotConfig', plotConfig);
},
[BotStoreActions.updatePlotConfigName]({ commit }, plotConfigName: string) {
commit('updatePlotConfigName', plotConfigName);
},
async [BotStoreActions.getTrades]({ commit }) { async [BotStoreActions.getTrades]({ commit }) {
try { try {
let totalTrades = 0; let totalTrades = 0;