Fix: Vouchers post was not allowed as the check was wrong.

This commit is contained in:
Amritanshu Agrawal 2020-11-23 17:29:32 +05:30
parent 1b84ef0b11
commit 715e35ef38
7 changed files with 7 additions and 7 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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