🐛 (share) go to account after first sync
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
<template>
|
||||
<div class="account-list">
|
||||
<div class="account-grid" v-if="accounts.length">
|
||||
<account-card v-for="(account, k) in accounts" :key="k" :account="account" />
|
||||
<account-card
|
||||
v-for="(account, k) in accounts"
|
||||
:key="k"
|
||||
:account="account"
|
||||
/>
|
||||
</div>
|
||||
<div v-else-if="fetched">
|
||||
<awe-icon icon="inbox" /> Les comptes créés s'afficheront ici.
|
||||
@@ -43,6 +47,10 @@ export default class AccountList extends Vue {
|
||||
bus.$on(SYNC, this.getData)
|
||||
}
|
||||
|
||||
public beforeDestroy() {
|
||||
bus.$off(SYNC, this.getData)
|
||||
}
|
||||
|
||||
public async getData(): Promise<void> {
|
||||
this.accounts = await accountService.getAll(this.archived)
|
||||
this.fetched = true
|
||||
|
||||
Reference in New Issue
Block a user