frequi_origin/src/components/layout/NavFooter.vue

58 lines
1.9 KiB
Vue
Raw Normal View History

2021-12-19 19:14:35 +00:00
<template>
2022-01-01 16:22:32 +00:00
<footer class="d-md-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 16:57:31 +00:00
Trades
2021-12-25 09:05:38 +00:00
</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 16:57:31 +00:00
History
</router-link>
<router-link v-if="!canRunBacktest" class="nav-link navbar-nav" to="/pairlist">
<PairListIcon />
Pairlist
2021-12-25 09:05:38 +00:00
</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';
2021-12-25 16:57:31 +00:00
import PairListIcon from 'vue-material-design-icons/ViewList.vue';
2021-12-25 09:25:24 +00:00
import DashboardIcon from 'vue-material-design-icons/ViewDashboardOutline.vue';
2021-12-19 19:14:35 +00:00
const ftbot = namespace('ftbot');
2021-12-25 16:57:31 +00:00
@Component({
components: { OpenTradesIcon, ClosedTradesIcon, BalanceIcon, PairListIcon, DashboardIcon },
})
2021-12-19 19:14:35 +00:00
export default class NavFooter extends Vue {
@ftbot.Getter [BotStoreGetters.canRunBacktest]!: boolean;
}
</script>
2021-12-25 16:57:31 +00:00
<style lang="scss" scoped>
[data-theme='dark'] {
.router-link-active,
.nav-link:active {
color: white !important;
}
}
</style>