mirror of
https://github.com/frappe/books.git
synced 2025-01-11 02:36:14 +00:00
link action fields in report should not hardcode type
This commit is contained in:
parent
65a5e313ed
commit
a303b6011b
@ -30,10 +30,11 @@ export default {
|
||||
style() {
|
||||
return {
|
||||
padding: this.icon ? '6px 12px' : '6px 24px',
|
||||
color: this.type === 'primary' ? '#fff' : '#000',
|
||||
'background-image':
|
||||
this.type === 'primary'
|
||||
? 'linear-gradient(180deg, #2C9AF1 0%, #2490EF 100%)'
|
||||
: 'linear-gradient(180deg, #F9F9FA 0%, #F4F4F6 100%)'
|
||||
: 'linear-gradient(180deg, #F9F9FA 0%, #F4F4F6 100%)',
|
||||
};
|
||||
},
|
||||
_class() {
|
||||
|
@ -7,8 +7,8 @@
|
||||
@click="link.action(reportData, filters)"
|
||||
v-for="link of report.linkFields"
|
||||
:key="link.label"
|
||||
type="primary"
|
||||
class="ml-2 text-white text-xs"
|
||||
:type="link.type"
|
||||
class="ml-2 text-xs"
|
||||
>
|
||||
{{ link.label }}
|
||||
</Button>
|
||||
|
Loading…
Reference in New Issue
Block a user