Fix: Vouchers post was not allowed as the check was wrong.
This commit is contained in:
parent
1b84ef0b11
commit
715e35ef38
@ -159,7 +159,7 @@
|
||||
mat-raised-button
|
||||
(click)="post()"
|
||||
*ngIf="voucher.id"
|
||||
[disabled]="voucher.posted || auth.allowed('post-vouchers')"
|
||||
[disabled]="voucher.posted || !auth.allowed('post-vouchers')"
|
||||
>
|
||||
{{ voucher.posted ? 'Posted' : 'Post' }}
|
||||
</button>
|
||||
|
@ -92,7 +92,7 @@
|
||||
mat-raised-button
|
||||
(click)="post()"
|
||||
*ngIf="voucher.id"
|
||||
[disabled]="voucher.posted || auth.allowed('post-vouchers')"
|
||||
[disabled]="voucher.posted || !auth.allowed('post-vouchers')"
|
||||
>
|
||||
{{ voucher.posted ? 'Posted' : 'Post' }}
|
||||
</button>
|
||||
|
@ -159,7 +159,7 @@
|
||||
mat-raised-button
|
||||
(click)="post()"
|
||||
*ngIf="voucher.id"
|
||||
[disabled]="voucher.posted || auth.allowed('post-vouchers')"
|
||||
[disabled]="voucher.posted || !auth.allowed('post-vouchers')"
|
||||
>
|
||||
{{ voucher.posted ? 'Posted' : 'Post' }}
|
||||
</button>
|
||||
|
@ -166,7 +166,7 @@
|
||||
mat-raised-button
|
||||
(click)="post()"
|
||||
*ngIf="voucher.id"
|
||||
[disabled]="voucher.posted || auth.allowed('post-vouchers')"
|
||||
[disabled]="voucher.posted || !auth.allowed('post-vouchers')"
|
||||
>
|
||||
{{ voucher.posted ? 'Posted' : 'Post' }}
|
||||
</button>
|
||||
|
@ -207,7 +207,7 @@
|
||||
mat-raised-button
|
||||
(click)="post()"
|
||||
*ngIf="voucher.id"
|
||||
[disabled]="voucher.posted || auth.allowed('post-vouchers')"
|
||||
[disabled]="voucher.posted || !auth.allowed('post-vouchers')"
|
||||
>
|
||||
{{ voucher.posted ? 'Posted' : 'Post' }}
|
||||
</button>
|
||||
|
@ -231,7 +231,7 @@
|
||||
mat-raised-button
|
||||
(click)="post()"
|
||||
*ngIf="voucher.id"
|
||||
[disabled]="voucher.posted || auth.allowed('post-vouchers')"
|
||||
[disabled]="voucher.posted || !auth.allowed('post-vouchers')"
|
||||
>
|
||||
{{ voucher.posted ? 'Posted' : 'Post' }}
|
||||
</button>
|
||||
|
@ -166,7 +166,7 @@
|
||||
mat-raised-button
|
||||
(click)="post()"
|
||||
*ngIf="voucher.id"
|
||||
[disabled]="voucher.posted || auth.allowed('post-vouchers')"
|
||||
[disabled]="voucher.posted || !auth.allowed('post-vouchers')"
|
||||
>
|
||||
{{ voucher.posted ? 'Posted' : 'Post' }}
|
||||
</button>
|
||||
|
Loading…
Reference in New Issue
Block a user