This website works better with JavaScript.
Home
Explore
Help
Sign In
kj
/
vendor-app
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Add menu item API conneciton
master
kj1352
4 years ago
parent
50be26d184
commit
f6058102c2
2 changed files
with
4 additions
and
24 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
src/app/menu-items/menu-items.component.html
+3
-23
src/app/menu-items/menu-items.component.ts
+ 1
- 1
src/app/menu-items/menu-items.component.html
View File
@@ -82,7 +82,7 @@
</li>
<li>
<label> Waiting Time (In Minutes) </label>
<input type="
number" [(ngModel)]="newItem.wait_duration.minutes
">
<input type="
text" [(ngModel)]="newItem.wait_duration
">
</li>
</ul>
+ 3
- 23
src/app/menu-items/menu-items.component.ts
View File
@@ -25,17 +25,7 @@ export class MenuItemsComponent implements OnInit {
menu_item_name: string,
rating: number,
soft_delete: boolean,
wait_duration: {
date: number,
day: number,
hours: number,
minutes: number,
month: number,
seconds: number,
time: number,
timezoneOffset: number,
year: number,
},
wait_duration: string,
} = {
image_url: '',
is_available: false,
@@ -45,18 +35,8 @@ export class MenuItemsComponent implements OnInit {
item_price: null,
menu_item_name: '',
rating: 3,
soft_delete: false,
wait_duration: {
date: 0,
day: 0,
hours: 0,
minutes: 0,
month: 0,
seconds: 0,
time: 0,
timezoneOffset: 0,
year: 0,
}
soft_delete: false,
wait_duration:"00:30:00"
};
constructor(
Write
Preview
Loading…
Cancel
Save