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:
@ -59,9 +59,7 @@ export class UpdateProductPricesComponent implements OnInit {
|
||||
.pipe(
|
||||
map((value) => {
|
||||
const data = value as { menuCategories: MenuCategory[]; info: UpdateProductPrices };
|
||||
data.menuCategories.unshift(
|
||||
new MenuCategory({ id: undefined, name: '-- All Categories --' }),
|
||||
);
|
||||
data.menuCategories.unshift(new MenuCategory({ id: undefined, name: '-- All Categories --' }));
|
||||
return data;
|
||||
}),
|
||||
)
|
||||
@ -74,9 +72,7 @@ export class UpdateProductPricesComponent implements OnInit {
|
||||
loadData(info: UpdateProductPrices) {
|
||||
this.info = info;
|
||||
this.form.controls.date.setValue(moment(this.info.date, 'DD-MMM-YYYY').toDate());
|
||||
this.form.controls.menuCategory.setValue(
|
||||
this.info.menuCategoryId !== undefined ? this.info.menuCategoryId : '',
|
||||
);
|
||||
this.form.controls.menuCategory.setValue(this.info.menuCategoryId !== undefined ? this.info.menuCategoryId : '');
|
||||
this.form.controls.prices.clear();
|
||||
|
||||
this.info.items.forEach((x) =>
|
||||
|
||||
Reference in New Issue
Block a user