updated transaction tables

This commit is contained in:
Čarodej
2021-12-10 11:00:30 +01:00
parent 78a6cf0c92
commit 26f367031e
10 changed files with 360 additions and 225 deletions

View File

@@ -327,6 +327,7 @@ const FunctionHelpers = {
'paypal': '/assets/payments/paypal.svg',
'paystack': store.getters.isDarkMode ? '/assets/payments/paystack-dark.svg' : '/assets/payments/paystack.svg',
'stripe': '/assets/payments/stripe.svg',
'system': this.$getImage(store.getters.config.app_logo_horizontal),
}[driver]
}
@@ -348,6 +349,24 @@ const FunctionHelpers = {
}[status]
}
Vue.prototype.$getTransactionTypeTextColor = function (type) {
return {
'withdrawal': 'text-red-500',
'credit': 'text-green-500',
'charge': '',
}[type]
}
Vue.prototype.$getTransactionMark = function (type) {
return {
'withdrawal': '-',
'credit': '+',
'charge': '',
}[type]
}
Vue.prototype.$goToFileView = function (id) {
let locations = {