diff --git a/frontend/src/components/Transaction.vue b/frontend/src/components/Transaction.vue
index f1deca565..103dec652 100644
--- a/frontend/src/components/Transaction.vue
+++ b/frontend/src/components/Transaction.vue
@@ -9,9 +9,10 @@
-
- i
-
+
@@ -85,6 +86,16 @@ export default {
gdt: { type: Number },
id: { type: Number },
},
+ data() {
+ return {
+ collapseStatus: [],
+ }
+ },
+ methods: {
+ getCollapseState(id) {
+ return this.collapseStatus.includes('gdt-collapse-' + id)
+ },
+ },
computed: {
collapseId() {
return 'gdt-collapse-' + String(this.id)
@@ -130,5 +141,14 @@ export default {
}
},
},
+ mounted() {
+ this.$root.$on('bv::collapse::state', (collapseId, isJustShown) => {
+ if (isJustShown) {
+ this.collapseStatus.push(collapseId)
+ } else {
+ this.collapseStatus = this.collapseStatus.filter((id) => id !== collapseId)
+ }
+ })
+ },
}
diff --git a/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue b/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue
index 73373c4b0..a104bbae6 100644
--- a/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue
+++ b/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue
@@ -28,6 +28,16 @@
:key="transactionId"
:style="type === 'decay' ? 'background-color:#f1e0ae3d' : ''"
>
+
+
import PaginationButtons from '../../../components/PaginationButtons'
import DecayInformation from '../../../components/DecayInformation'
+import Transaction from '../../../components/Transaction.vue'
const iconsByType = {
send: { icon: 'arrow-left-circle', classes: 'text-danger', operator: '-' },
@@ -194,6 +205,7 @@ export default {
components: {
PaginationButtons,
DecayInformation,
+ Transaction,
},
data() {
return {