2020-05-06 04:38:57 +00:00
|
|
|
<template>
|
|
|
|
<div class="container-fluid">
|
|
|
|
<div class="row">
|
2020-05-15 17:28:20 +00:00
|
|
|
<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
|
|
|
|
v-if="botState.forcebuy_enabled"
|
2020-08-31 15:43:44 +00:00
|
|
|
class="btn-primary col-md-5 m-1"
|
2020-06-04 18:06:58 +00:00
|
|
|
@click="initiateForcebuy"
|
2020-05-15 17:28:20 +00:00
|
|
|
>
|
2020-05-14 16:10:57 +00:00
|
|
|
Forcebuy
|
|
|
|
</button>
|
2020-08-31 15:43:44 +00:00
|
|
|
<ForceBuyForm :modal-show="forcebuyShow" @close="this.$bvModal.hide('forcebuy-modal')" />
|
2020-05-06 04:38:57 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2020-08-09 13:23:04 +00:00
|
|
|
<script lang="ts">
|
|
|
|
import { Component, Vue } from 'vue-property-decorator';
|
|
|
|
import { namespace } from 'vuex-class';
|
2020-08-29 09:23:39 +00:00
|
|
|
import { BotState } from '@/types';
|
2020-05-14 16:10:57 +00:00
|
|
|
import ForceBuyForm from './ForceBuyForm.vue';
|
2020-05-06 04:38:57 +00:00
|
|
|
|
2020-08-09 13:23:04 +00:00
|
|
|
const ftbot = namespace('ftbot');
|
|
|
|
|
|
|
|
@Component({ components: { ForceBuyForm } })
|
|
|
|
export default class BotControls extends Vue {
|
|
|
|
forcebuyShow = false;
|
|
|
|
|
2020-08-15 15:31:29 +00:00
|
|
|
@ftbot.State botState!: BotState;
|
2020-08-09 13:23:04 +00:00
|
|
|
|
|
|
|
@ftbot.Action startBot;
|
|
|
|
|
|
|
|
@ftbot.Action stopBot;
|
|
|
|
|
|
|
|
@ftbot.Action stopBuy;
|
|
|
|
|
|
|
|
@ftbot.Action reloadConfig;
|
|
|
|
|
|
|
|
initiateForcebuy() {
|
|
|
|
this.$bvModal.show('forcebuy-modal');
|
|
|
|
}
|
|
|
|
}
|
2020-05-06 04:38:57 +00:00
|
|
|
</script>
|