mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-13 11:43:52 +00:00
44 lines
1.2 KiB
Vue
44 lines
1.2 KiB
Vue
<template>
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<button class="btn-primary col-md-5 m-1" @click="startBot()">Start</button>
|
|
<button class="btn-primary col-md-5 m-1" @click="stopBot()">Stop</button>
|
|
<button class="btn-primary col-md-5 m-1" @click="stopBuy()">StopBuy</button>
|
|
<button class="btn-primary col-md-5 m-1" @click="reloadConfig()">Reload Config</button>
|
|
<button
|
|
class="btn-primary col-md-5 m-1"
|
|
v-if="botState.forcebuy_enabled"
|
|
@click="initiate_forcebuy"
|
|
>
|
|
Forcebuy
|
|
</button>
|
|
<ForceBuyForm :modalShow="forcebuy_show" @close="this.$bvModal.hide('forcebuy-modal')" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import { mapActions, mapState } from 'vuex';
|
|
import ForceBuyForm from './ForceBuyForm.vue';
|
|
|
|
export default {
|
|
name: 'BotControls',
|
|
components: { ForceBuyForm },
|
|
computed: {
|
|
...mapState('ftbot', ['botState']),
|
|
},
|
|
data() {
|
|
return {
|
|
forcebuy_show: false,
|
|
};
|
|
},
|
|
methods: {
|
|
...mapActions('ftbot', ['startBot', 'stopBot', 'stopBuy', 'reloadConfig']),
|
|
initiate_forcebuy() {
|
|
console.log('Forcebuy started');
|
|
this.$bvModal.show('forcebuy-modal');
|
|
},
|
|
},
|
|
};
|
|
</script>
|