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

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