🐛 (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 { public mounted(): void {
window.addEventListener('online', this.onchange) window.addEventListener('online', this.onchange)
window.addEventListener('offline', this.onchange) window.addEventListener('offline', this.onchange)
this.$emit(this.online ? 'online' : 'offline') this.onchange()
} }
public beforeDestroy(): void { public beforeDestroy(): void {

View File

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

View File

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