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" />
|
2022-11-20 10:29:34 +00:00
|
|
|
<div class="d-flex flex-align-center justify-content-between px-2">
|
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-07-07 18:44:19 +00:00
|
|
|
import { defineComponent } from 'vue';
|
2022-04-18 17:54:17 +00:00
|
|
|
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() {
|
2022-04-18 17:54:17 +00:00
|
|
|
const botStore = useBotStore();
|
2022-04-15 17:46:49 +00:00
|
|
|
return {
|
2022-04-18 17:54:17 +00:00
|
|
|
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>
|