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:
2023-03-13 23:52:44 +05:30
parent b021861ba3
commit efa2af396d
123 changed files with 313 additions and 836 deletions

View File

@ -16,22 +16,8 @@
</form>
</mat-card-content>
<mat-card-actions>
<button
mat-raised-button
[disabled]="item.isFixture"
color="primary"
class="mr-5"
(click)="save()"
>
Save
</button>
<button
mat-raised-button
[disabled]="item.isFixture"
color="warn"
(click)="confirmDelete()"
*ngIf="!!item.id"
>
<button mat-raised-button [disabled]="item.isFixture" color="primary" class="mr-5" (click)="save()">Save</button>
<button mat-raised-button [disabled]="item.isFixture" color="warn" (click)="confirmDelete()" *ngIf="!!item.id">
Delete
</button>
</mat-card-actions>

View File

@ -9,10 +9,7 @@ describe('MenuCategoryListResolver', () => {
});
});
it('should be created', inject(
[MenuCategoryListResolver],
(service: MenuCategoryListResolver) => {
expect(service).toBeTruthy();
},
));
it('should be created', inject([MenuCategoryListResolver], (service: MenuCategoryListResolver) => {
expect(service).toBeTruthy();
}));
});

View File

@ -39,11 +39,7 @@
</ng-container>
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
<mat-row
*matRowDef="let row; columns: displayedColumns"
cdkDrag
[cdkDragData]="row"
></mat-row>
<mat-row *matRowDef="let row; columns: displayedColumns" cdkDrag [cdkDragData]="row"></mat-row>
</mat-table>
</mat-card-content>
</mat-card>

View File

@ -22,9 +22,7 @@ export class MenuCategoryService {
const getUrl: string = id === null ? url : `${url}/${id}`;
return this.http
.get<MenuCategory>(getUrl)
.pipe(
catchError(this.log.handleError(serviceName, `get id=${id}`)),
) as Observable<MenuCategory>;
.pipe(catchError(this.log.handleError(serviceName, `get id=${id}`))) as Observable<MenuCategory>;
}
list(shouldHaveActiveProducts: boolean | undefined): Observable<MenuCategory[]> {
@ -52,9 +50,7 @@ export class MenuCategoryService {
updateSortOrder(list: MenuCategory[]): Observable<boolean> {
return this.http
.post<MenuCategory[]>(`${url}/list`, list, httpOptions)
.pipe(
catchError(this.log.handleError(serviceName, 'updateSortOrder')),
) as Observable<boolean>;
.pipe(catchError(this.log.handleError(serviceName, 'updateSortOrder'))) as Observable<boolean>;
}
saveOrUpdate(menuCategory: MenuCategory): Observable<MenuCategory> {