frequi_origin/src/components/layout/NavFooter.vue

44 lines
1.5 KiB
Vue
Raw Normal View History

2021-12-19 19:14:35 +00:00
<template>
2021-12-25 09:05:38 +00:00
<footer class="d-sm-none">
2021-12-25 09:25:24 +00:00
<!-- Only visible on xs (phone) viewport! -->
2021-12-19 19:14:35 +00:00
<hr class="my-0" />
<div class="d-flex flex-align-center justify-content-center">
2021-12-25 09:05:38 +00:00
<router-link v-if="!canRunBacktest" class="nav-link navbar-nav" to="/open_trades">
2021-12-25 09:25:24 +00:00
<OpenTradesIcon />
2021-12-25 09:05:38 +00:00
Open Trades
</router-link>
<router-link v-if="!canRunBacktest" class="nav-link navbar-nav" to="/trade_history">
2021-12-25 09:25:24 +00:00
<ClosedTradesIcon />
2021-12-25 09:05:38 +00:00
Trade History
</router-link>
2021-12-19 19:14:35 +00:00
<router-link v-if="!canRunBacktest" class="nav-link navbar-nav" to="/balance">
2021-12-25 09:25:24 +00:00
<BalanceIcon />
2021-12-19 19:14:35 +00:00
Balance
</router-link>
<router-link v-if="!canRunBacktest" class="nav-link navbar-nav" to="/dashboard">
2021-12-25 09:25:24 +00:00
<DashboardIcon />
2021-12-19 19:14:35 +00:00
Dashboard
</router-link>
</div>
</footer>
</template>
<script lang="ts">
import { Component, Vue } from 'vue-property-decorator';
import { namespace } from 'vuex-class';
import { BotStoreGetters } from '@/store/modules/ftbot';
2021-12-25 09:25:24 +00:00
import OpenTradesIcon from 'vue-material-design-icons/FolderOpen.vue';
import ClosedTradesIcon from 'vue-material-design-icons/FolderLock.vue';
import BalanceIcon from 'vue-material-design-icons/Bank.vue';
import DashboardIcon from 'vue-material-design-icons/ViewDashboardOutline.vue';
2021-12-19 19:14:35 +00:00
const ftbot = namespace('ftbot');
2021-12-25 09:25:24 +00:00
@Component({ components: { OpenTradesIcon, ClosedTradesIcon, BalanceIcon, DashboardIcon } })
2021-12-19 19:14:35 +00:00
export default class NavFooter extends Vue {
@ftbot.Getter [BotStoreGetters.canRunBacktest]!: boolean;
}
</script>
<style lang="scss" scoped></style>