Skip to content

Commit

Permalink
fixup! Fix empty content for mail
Browse files Browse the repository at this point in the history
Signed-off-by: GretaD <gretadoci@gmail.com>
  • Loading branch information
GretaD committed Aug 25, 2020
1 parent 0ee4ce4 commit 8449bc3
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions src/views/Dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,14 @@
</DashboardWidgetItem>
</template>
<template v-slot:empty-content>
<EmptyContent id="mail--empty-content" icon="icon-mail">
<EmptyContent id="mail--empty-content" icon="icon-checkmark">
<template #desc>
{{ t('mail', 'No important message found yet') }}
<a v-if="accounts.length === 0" :href="accountSetupUrl" class="button">{{ t('mail', 'Set up an account') }}</a>
{{ t('mail', 'No message found yet') }}
</template>
</EmptyContent>
<div class="no-account icon-archive">
<a v-if="accounts.length === 0" :href="accountSetupUrl" class="button">{{ t('mail', 'Set up an account') }}</a>
</div>
</template>
</DashboardWidget>
</template>
Expand Down Expand Up @@ -133,6 +135,13 @@ export default {

<style lang="scss">
#mail--empty-content {
margin-top: 50px;
text-align: center;
margin-top: 5vh;
}
.button {
margin-left: 65px;
}
.no-account {
margin-top: 5vh;
}
</style>

0 comments on commit 8449bc3

Please sign in to comment.