This website works better with JavaScript.
首頁
探索
說明
登入
kj
/
vendor-app
關註
1
收藏
0
複製
0
程式碼
問題管理
0
合併請求
0
版本發佈
0
Wiki
Activity
瀏覽代碼
Add menu item API conneciton
master
kj1352
4 年之前
父節點
50be26d184
當前提交
f6058102c2
共有
2 個文件被更改
,包括
4 次插入
和
24 次删除
分割檢視
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
查看文件
@@ -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
查看文件
@@ -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…
取消
儲存