Add links to automation modes

This commit is contained in:
2020-07-18 13:37:23 +03:00
parent 08c7119879
commit 7d3c14a842
3 changed files with 52 additions and 14 deletions

View File

@ -7,6 +7,8 @@
</h1>
</div>
<div class="actions-block">
<a :href="executorLink()" target="_blank">exec</a>
<a :href="blankLink()" target="_blank">blank</a>
<a href="#" v-on:click.prevent="pause">
pause
<span
@ -21,6 +23,7 @@
<script>
import { Mutations } from './Store';
import { ManagementMode, ModeDetector } from '../ModeDetector';
export default {
data() {
@ -41,6 +44,12 @@ export default {
toggleLogs() {
this.$store.commit(Mutations.toggleLogs);
},
executorLink() {
return ModeDetector.makeLink(ManagementMode.Executor);
},
blankLink() {
return ModeDetector.makeLink(ManagementMode.Blank);
},
},
};
</script>