mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 08:12:15 +00:00
- transaction type for metered billing in transaction tables
This commit is contained in:
13
resources/js/helpers/functionHelpers.js
vendored
13
resources/js/helpers/functionHelpers.js
vendored
@@ -343,7 +343,6 @@ const FunctionHelpers = {
|
||||
}
|
||||
|
||||
Vue.prototype.$getTransactionStatusColor = function (status) {
|
||||
|
||||
return {
|
||||
'completed': 'green',
|
||||
'cancelled': 'yellow',
|
||||
@@ -351,11 +350,19 @@ const FunctionHelpers = {
|
||||
}[status]
|
||||
}
|
||||
|
||||
Vue.prototype.$getTransactionTypeColor = function (type) {
|
||||
return {
|
||||
'credit': 'green',
|
||||
'charge': 'purple',
|
||||
'withdrawal': 'red',
|
||||
}[type]
|
||||
}
|
||||
|
||||
Vue.prototype.$getTransactionTypeTextColor = function (type) {
|
||||
|
||||
return {
|
||||
'withdrawal': 'text-red-500',
|
||||
'credit': 'text-green-500',
|
||||
'withdrawal': 'text-red',
|
||||
'credit': 'text-green',
|
||||
'charge': '',
|
||||
}[type]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user