mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-10 10:21:55 +00:00
chore: Extract click method
This commit is contained in:
parent
9583a994a8
commit
1099d7b43e
|
@ -51,10 +51,7 @@
|
|||
size="sm"
|
||||
class="col"
|
||||
:disabled="addNewIndicator"
|
||||
@click="
|
||||
addNewIndicator = !addNewIndicator;
|
||||
selIndicatorName = '';
|
||||
"
|
||||
@click="clickAddNewIndicator"
|
||||
>
|
||||
Add new indicator
|
||||
</BButton>
|
||||
|
@ -271,6 +268,12 @@ function removeIndicator() {
|
|||
plotStore.editablePlotConfig = { ...plotStore.editablePlotConfig };
|
||||
selIndicatorName.value = '';
|
||||
}
|
||||
|
||||
function clickAddNewIndicator() {
|
||||
addNewIndicator.value = !addNewIndicator;
|
||||
selIndicatorName.value = '';
|
||||
}
|
||||
|
||||
function addSubplot(newSubplotName: string) {
|
||||
plotStore.editablePlotConfig.subplots = {
|
||||
...plotStore.editablePlotConfig.subplots,
|
||||
|
|
Loading…
Reference in New Issue
Block a user