Chore: Moved from css to sass, god knows what to do now.
Chore: Prettier line length changed to 120 from 100 Fix: Hard coded the face as the primary color to make the buttons stand out
This commit is contained in:
@ -9,10 +9,7 @@ describe('CustomerDiscountsService', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it('should be created', inject(
|
||||
[CustomerDiscountsService],
|
||||
(service: CustomerDiscountsService) => {
|
||||
expect(service).toBeTruthy();
|
||||
},
|
||||
));
|
||||
it('should be created', inject([CustomerDiscountsService], (service: CustomerDiscountsService) => {
|
||||
expect(service).toBeTruthy();
|
||||
}));
|
||||
});
|
||||
|
||||
@ -20,9 +20,7 @@ export class CustomerDiscountsService {
|
||||
const getUrl: string = id === undefined ? `${url}` : `${url}/${id}`;
|
||||
return this.http
|
||||
.get<DiscountItem[]>(getUrl)
|
||||
.pipe(catchError(this.log.handleError(serviceName, `get id=${id}`))) as Observable<
|
||||
DiscountItem[]
|
||||
>;
|
||||
.pipe(catchError(this.log.handleError(serviceName, `get id=${id}`))) as Observable<DiscountItem[]>;
|
||||
}
|
||||
|
||||
listForDiscount(): Observable<{ name: string; discount: number; discountLimit: number }[]> {
|
||||
|
||||
@ -10,15 +10,8 @@
|
||||
|
||||
<!-- Discount Column -->
|
||||
<ng-container matColumnDef="discount">
|
||||
<mat-header-cell *matHeaderCellDef class="center" class="flex-auto"
|
||||
>Discount</mat-header-cell
|
||||
>
|
||||
<mat-cell
|
||||
*matCellDef="let row; let i = index"
|
||||
class="center"
|
||||
[formGroupName]="i"
|
||||
class="flex-auto"
|
||||
>
|
||||
<mat-header-cell *matHeaderCellDef class="center" class="flex-auto">Discount</mat-header-cell>
|
||||
<mat-cell *matCellDef="let row; let i = index" class="center" [formGroupName]="i" class="flex-auto">
|
||||
<mat-form-field class="flex-auto">
|
||||
<input matInput type="number" formControlName="discount" autocomplete="off" />
|
||||
<span matSuffix>%</span>
|
||||
|
||||
Reference in New Issue
Block a user