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:
@ -36,8 +36,6 @@
|
||||
</mat-card-content>
|
||||
<mat-card-actions>
|
||||
<button mat-raised-button color="primary" class="mr-5" (click)="save()">Save</button>
|
||||
<button mat-raised-button color="warn" (click)="confirmDelete()" *ngIf="!!item.id">
|
||||
Delete
|
||||
</button>
|
||||
<button mat-raised-button color="warn" (click)="confirmDelete()" *ngIf="!!item.id">Delete</button>
|
||||
</mat-card-actions>
|
||||
</mat-card>
|
||||
|
||||
@ -10,10 +10,7 @@ export class ModifierListDataSource extends DataSource<Modifier> {
|
||||
public viewData: Modifier[];
|
||||
private filterValue: string;
|
||||
|
||||
constructor(
|
||||
private readonly filter: Observable<string>,
|
||||
private readonly dataObs: Observable<Modifier[]>,
|
||||
) {
|
||||
constructor(private readonly filter: Observable<string>, private readonly dataObs: Observable<Modifier[]>) {
|
||||
super();
|
||||
this.data = [];
|
||||
this.viewData = [];
|
||||
@ -45,8 +42,6 @@ export class ModifierListDataSource extends DataSource<Modifier> {
|
||||
|
||||
private getFilteredData(data: Modifier[]): Modifier[] {
|
||||
const filter = this.filterValue === undefined ? '' : this.filterValue;
|
||||
return data.filter(
|
||||
(x) => (x.modifierCategory as ModifierCategory).id === filter || filter === '',
|
||||
);
|
||||
return data.filter((x) => (x.modifierCategory as ModifierCategory).id === filter || filter === '');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user