mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
fix problems with icons in fronten
This commit is contained in:
parent
9b2afaafe5
commit
143a07bb57
@ -169,6 +169,19 @@ const iconsByType = {
|
|||||||
7: { icon: 'gift', classes: 'gradido-global-color-accent' },
|
7: { icon: 'gift', classes: 'gradido-global-color-accent' },
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function iconByType(typeId)
|
||||||
|
{
|
||||||
|
switch(typeId) {
|
||||||
|
case 1:
|
||||||
|
case 2:
|
||||||
|
case 3:
|
||||||
|
case 5:
|
||||||
|
case 6: return { icon: 'heart', classes: 'gradido-global-color-accent' }
|
||||||
|
case 4: return { icon: 'person-check', classes: 'gradido-global-color-accent' }
|
||||||
|
case 7: return { icon: 'gift', classes: 'gradido-global-color-accent' }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'gdt-transaction-list',
|
name: 'gdt-transaction-list',
|
||||||
components: {
|
components: {
|
||||||
@ -216,7 +229,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
getIcon(givenType) {
|
getIcon(givenType) {
|
||||||
const type = iconsByType[givenType]
|
const type = iconByType(givenType)
|
||||||
if (type)
|
if (type)
|
||||||
return {
|
return {
|
||||||
icon: type.icon,
|
icon: type.icon,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user