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 { 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';
|
2022-04-15 17:53:25 +00:00
|
|
|
import StoreModules from '@/store/storeSubModules';
|
2022-04-15 17:46:49 +00:00
|
|
|
import { defineComponent } from '@vue/composition-api';
|
|
|
|
import { useNamespacedGetters } from 'vuex-composition-helpers';
|
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 { canRunBacktest } = useNamespacedGetters(StoreModules.ftbot, [
|
|
|
|
BotStoreGetters.canRunBacktest,
|
|
|
|
]);
|
|
|
|
return {
|
|
|
|
canRunBacktest,
|
|
|
|
};
|
|
|
|
},
|
|
|
|
});
|
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>
|