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"
|
:transactionCount="transactionCount"
|
||||||
@update-transactions="updateTransactions"
|
@update-transactions="updateTransactions"
|
||||||
/>
|
/>
|
||||||
|
<gdd-table-footer :transactionCount="transactionCount" />
|
||||||
</b-container>
|
</b-container>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -26,6 +27,7 @@
|
|||||||
import GddStatus from './AccountOverview/GddStatus.vue'
|
import GddStatus from './AccountOverview/GddStatus.vue'
|
||||||
import GddSend from './AccountOverview/GddSend.vue'
|
import GddSend from './AccountOverview/GddSend.vue'
|
||||||
import GddTable from './AccountOverview/GddTable.vue'
|
import GddTable from './AccountOverview/GddTable.vue'
|
||||||
|
import GddTableFooter from './AccountOverview/GddTableFooter.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Overview',
|
name: 'Overview',
|
||||||
@ -47,6 +49,7 @@ export default {
|
|||||||
GddStatus,
|
GddStatus,
|
||||||
GddSend,
|
GddSend,
|
||||||
GddTable,
|
GddTable,
|
||||||
|
GddTableFooter,
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
toggleShowList(bool) {
|
toggleShowList(bool) {
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<b-row>
|
<b-row>
|
||||||
<b-col col="6">
|
<b-col>
|
||||||
<stats-card
|
<stats-card
|
||||||
type="gradient-red"
|
type="gradient-red"
|
||||||
sub-title="balance_gdd"
|
sub-title="balance_gdd"
|
||||||
@ -11,7 +11,7 @@
|
|||||||
{{ $n(balance) }} GDD
|
{{ $n(balance) }} GDD
|
||||||
</stats-card>
|
</stats-card>
|
||||||
</b-col>
|
</b-col>
|
||||||
<b-col col="6">
|
<b-col>
|
||||||
<stats-card
|
<stats-card
|
||||||
type="gradient-orange"
|
type="gradient-orange"
|
||||||
sub-title="balance_gdt"
|
sub-title="balance_gdt"
|
||||||
|
|||||||
@ -88,15 +88,10 @@
|
|||||||
</b-card>
|
</b-card>
|
||||||
</b-collapse>
|
</b-collapse>
|
||||||
</b-list-group-item>
|
</b-list-group-item>
|
||||||
<b-list-group-item v-show="this.$route.path == '/overview'">
|
<b-list-group-item v-show="transactionCount === 0">
|
||||||
<b-alert v-if="transactions.length === 0" show variant="secondary">
|
<b-alert show variant="secondary">
|
||||||
<span class="alert-text">{{ $t('transaction.nullTransactions') }}</span>
|
<span class="alert-text">{{ $t('transaction.nullTransactions') }}</span>
|
||||||
</b-alert>
|
</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-item>
|
||||||
</b-list-group>
|
</b-list-group>
|
||||||
</div>
|
</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-col>
|
||||||
</b-row>
|
</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>
|
</b-container>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user