2
0
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:
Ankit Singhaniya 2021-12-14 23:44:48 +05:30 committed by Alan
parent 65a5e313ed
commit a303b6011b
2 changed files with 4 additions and 3 deletions

View File

@ -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() {

View File

@ -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>