mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-27 05:25:17 +00:00
Add refresh button to strategy list
This commit is contained in:
parent
28a1565c24
commit
91c2f5dc6f
|
@ -1,9 +1,20 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<b-form-group label="Strategy" label-for="strategyName" invalid-feedback="Strategy is required">
|
<div class="w-100 d-flex">
|
||||||
|
<b-form-group
|
||||||
|
label="Strategy"
|
||||||
|
label-for="strategyName"
|
||||||
|
invalid-feedback="Strategy is required"
|
||||||
|
class="flex-grow-1"
|
||||||
|
>
|
||||||
<b-form-select v-model="locStrategy" :options="strategyList" @change="strategyChanged">
|
<b-form-select v-model="locStrategy" :options="strategyList" @change="strategyChanged">
|
||||||
</b-form-select>
|
</b-form-select>
|
||||||
</b-form-group>
|
</b-form-group>
|
||||||
|
<div class="ml-2 d-flex align-items-center">
|
||||||
|
<b-button class="mt-2" @click="getStrategyList">↻</b-button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<textarea v-if="showDetails && strategy" v-model="strategyCode" class="w-100 h-100"></textarea>
|
<textarea v-if="showDetails && strategy" v-model="strategyCode" class="w-100 h-100"></textarea>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -25,7 +36,7 @@ export default class StrategyList extends Vue {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
@ftbot.Action getStrategy!: (strategy: string) => void;
|
@ftbot.Action getStrategy!: (strategy: string) => void;
|
||||||
|
|
||||||
@ftbot.State strategyList;
|
@ftbot.State strategyList!: string[];
|
||||||
|
|
||||||
@ftbot.State strategy;
|
@ftbot.State strategy;
|
||||||
|
|
||||||
|
@ -52,9 +63,11 @@ export default class StrategyList extends Vue {
|
||||||
}
|
}
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
|
if (!this.strategyList) {
|
||||||
this.getStrategyList();
|
this.getStrategyList();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style></style>
|
<style></style>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user