mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-11 02:33:51 +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() {
|
function newConfig() {
|
||||||
config.value = { name: '', pairlists: [] };
|
config.value = { name: '', pairlists: [] };
|
||||||
}
|
}
|
||||||
|
@ -147,6 +156,7 @@ export const usePairlistConfigStore = defineStore(
|
||||||
addToConfig,
|
addToConfig,
|
||||||
removeFromConfig,
|
removeFromConfig,
|
||||||
saveConfig,
|
saveConfig,
|
||||||
|
deleteConfig,
|
||||||
selectConfig,
|
selectConfig,
|
||||||
newConfig,
|
newConfig,
|
||||||
addToBlacklist,
|
addToBlacklist,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user