mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
fix extra table-transactions footer
This commit is contained in:
parent
8d345657ed
commit
a21e5676bc
@ -19,6 +19,7 @@
|
||||
:transactionCount="transactionCount"
|
||||
@update-transactions="updateTransactions"
|
||||
/>
|
||||
<gdd-table-footer :transactionCount="transactionCount" />
|
||||
</b-container>
|
||||
</div>
|
||||
</template>
|
||||
@ -26,6 +27,7 @@
|
||||
import GddStatus from './AccountOverview/GddStatus.vue'
|
||||
import GddSend from './AccountOverview/GddSend.vue'
|
||||
import GddTable from './AccountOverview/GddTable.vue'
|
||||
import GddTableFooter from './AccountOverview/GddTableFooter.vue'
|
||||
|
||||
export default {
|
||||
name: 'Overview',
|
||||
@ -47,6 +49,7 @@ export default {
|
||||
GddStatus,
|
||||
GddSend,
|
||||
GddTable,
|
||||
GddTableFooter,
|
||||
},
|
||||
methods: {
|
||||
toggleShowList(bool) {
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div>
|
||||
<b-row>
|
||||
<b-col col="6">
|
||||
<b-col>
|
||||
<stats-card
|
||||
type="gradient-red"
|
||||
sub-title="balance_gdd"
|
||||
@ -11,7 +11,7 @@
|
||||
{{ $n(balance) }} GDD
|
||||
</stats-card>
|
||||
</b-col>
|
||||
<b-col col="6">
|
||||
<b-col>
|
||||
<stats-card
|
||||
type="gradient-orange"
|
||||
sub-title="balance_gdt"
|
||||
|
||||
@ -88,15 +88,10 @@
|
||||
</b-card>
|
||||
</b-collapse>
|
||||
</b-list-group-item>
|
||||
<b-list-group-item v-show="this.$route.path == '/overview'">
|
||||
<b-alert v-if="transactions.length === 0" show variant="secondary">
|
||||
<b-list-group-item v-show="transactionCount === 0">
|
||||
<b-alert show variant="secondary">
|
||||
<span class="alert-text">{{ $t('transaction.nullTransactions') }}</span>
|
||||
</b-alert>
|
||||
<router-link
|
||||
v-else-if="transactions.length > 5"
|
||||
to="/transactions"
|
||||
v-html="$t('transaction.show_all', { count: transactionCount })"
|
||||
></router-link>
|
||||
</b-list-group-item>
|
||||
</b-list-group>
|
||||
</div>
|
||||
|
||||
17
frontend/src/views/Pages/AccountOverview/GddTableFooter.vue
Normal file
17
frontend/src/views/Pages/AccountOverview/GddTableFooter.vue
Normal file
@ -0,0 +1,17 @@
|
||||
<template>
|
||||
<b-list-group>
|
||||
<b-list-group-item v-show="transactionCount > 5">
|
||||
<router-link
|
||||
to="/transactions"
|
||||
v-html="$t('transaction.show_all', { count: transactionCount })"
|
||||
></router-link>
|
||||
</b-list-group-item>
|
||||
</b-list-group>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
transactionCount: { type: Number, default: 0 },
|
||||
},
|
||||
}
|
||||
</script>
|
||||
@ -15,9 +15,6 @@
|
||||
/>
|
||||
</b-col>
|
||||
</b-row>
|
||||
<b-row class="text-center mb-6" v-if="transactions.length == 0">
|
||||
<b-col class="h2">{{ $t('transaction.nullTransactions') }}</b-col>
|
||||
</b-row>
|
||||
</b-container>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user