mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-26 04:55:15 +00:00
deleting configs
This commit is contained in:
parent
af50b74a95
commit
ee3cf53e6b
|
@ -63,6 +63,15 @@ export const usePairlistConfigStore = defineStore(
|
|||
}
|
||||
}
|
||||
|
||||
function deleteConfig() {
|
||||
const i = savedConfigs.value.findIndex((c) => c.name === config.value.name);
|
||||
console.log(i);
|
||||
if (i > -1) {
|
||||
savedConfigs.value.splice(i, 1);
|
||||
config.value = { name: '', pairlists: [] };
|
||||
}
|
||||
}
|
||||
|
||||
function newConfig() {
|
||||
config.value = { name: '', pairlists: [] };
|
||||
}
|
||||
|
@ -147,6 +156,7 @@ export const usePairlistConfigStore = defineStore(
|
|||
addToConfig,
|
||||
removeFromConfig,
|
||||
saveConfig,
|
||||
deleteConfig,
|
||||
selectConfig,
|
||||
newConfig,
|
||||
addToBlacklist,
|
||||
|
|
Loading…
Reference in New Issue
Block a user