🐛 (Home) Add FAB in homepage

This commit is contained in:
Julien Calixte
2019-11-21 13:59:39 +01:00
parent 544054770b
commit 5d55d15b44
3 changed files with 12 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ export default class OnlineView extends Vue {
public mounted(): void {
window.addEventListener('online', this.onchange)
window.addEventListener('offline', this.onchange)
this.$emit(this.online ? 'online' : 'offline')
this.onchange()
}
public beforeDestroy(): void {

View File

@@ -13,6 +13,11 @@
html {
overflow-y: auto;
background-color: var(--primary-color);
}
body {
background-color: white;
}
.app {

View File

@@ -21,6 +21,10 @@
<div class="account-list-container box" v-if="showAccounts">
<account-list />
</div>
<fab-button v-else :to="{ name: 'account-new' }" :margin="true">
<span slot="fulltext">créer un compte</span>
</fab-button>
<section class="hero">
<div class="hero-body">
<div class="container">
@@ -43,7 +47,8 @@ import accountService from '@/services/AccountService'
@Component({
components: {
'account-list': AccountList,
'app-resume': () => import('@/components/AppResume.vue')
'app-resume': () => import('@/components/AppResume.vue'),
'fab-button': () => import('@/components/FabButton.vue')
}
})
export default class Home extends Vue {