frequi_origin/src/components/layout/NavFooter.vue

59 lines
1.8 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">
2022-04-21 05:25:32 +00:00
<router-link v-if="!botStore.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>
2022-04-21 05:25:32 +00:00
<router-link v-if="!botStore.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>
2022-04-21 05:25:32 +00:00
<router-link v-if="!botStore.canRunBacktest" class="nav-link navbar-nav" to="/pairlist">
2021-12-25 16:57:31 +00:00
<PairListIcon />
Pairlist
2021-12-25 09:05:38 +00:00
</router-link>
2022-04-21 05:25:32 +00:00
<router-link v-if="!botStore.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>
2022-04-21 05:25:32 +00:00
<router-link v-if="!botStore.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">
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';
2022-04-15 17:46:49 +00:00
import { defineComponent } from '@vue/composition-api';
import { useBotStore } from '@/stores/ftbotwrapper';
2021-12-19 19:14:35 +00:00
2022-04-15 17:46:49 +00:00
export default defineComponent({
name: 'NavFooter',
2021-12-25 16:57:31 +00:00
components: { OpenTradesIcon, ClosedTradesIcon, BalanceIcon, PairListIcon, DashboardIcon },
2022-04-15 17:46:49 +00:00
setup() {
const botStore = useBotStore();
2022-04-15 17:46:49 +00:00
return {
botStore,
2022-04-15 17:46:49 +00:00
};
},
});
2021-12-19 19:14:35 +00:00
</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>