diff --git a/.gitmodules b/.gitmodules index 3bee62a..977f21a 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,4 @@ -[submodule "server/cofffeemachineConfig"] - path = server/cofffeemachineConfig - url = ssh://poomipat@kong/1TBHDD/ikong/repo/cofffeemachineConfig +[submodule "cofffeemachineConfig"] + path = cofffeemachineConfig + url = ssh://ikong@192.168.10.159/1TBHDD/ikong/repo/cofffeemachineConfig + branch = master diff --git a/client/src/app/core/models/recipe.model.ts b/client/src/app/core/models/recipe.model.ts index f6e43e7..2a95696 100644 --- a/client/src/app/core/models/recipe.model.ts +++ b/client/src/app/core/models/recipe.model.ts @@ -30,7 +30,7 @@ export interface Recipe01 { RemainingCups: string; StringParam: string; TextForWarningBeforePay: string[]; - cashPrice: string; + cashPrice: number; changerecipe: string; disable: string; disable_by_cup: string; diff --git a/client/src/app/features/dashboard/dashboard.component.html b/client/src/app/features/dashboard/dashboard.component.html index e512c59..57767c8 100644 --- a/client/src/app/features/dashboard/dashboard.component.html +++ b/client/src/app/features/dashboard/dashboard.component.html @@ -1,5 +1,5 @@
diff --git a/client/src/app/features/dashboard/dashboard.component.ts b/client/src/app/features/dashboard/dashboard.component.ts index 6202fd8..effe437 100644 --- a/client/src/app/features/dashboard/dashboard.component.ts +++ b/client/src/app/features/dashboard/dashboard.component.ts @@ -30,7 +30,7 @@ export class DashboardComponent implements OnInit { 'Last Updated', ]; private offset = 0; - private take = 10; + private take = 20; private recipeVersionData: string[] = []; private currentRecipeVersion: string = 'coffeethai02_580.json'; diff --git a/client/src/app/shared/modal/recipe-modal.component.html b/client/src/app/shared/modal/recipe-modal.component.html index d3c9897..c0a8003 100644 --- a/client/src/app/shared/modal/recipe-modal.component.html +++ b/client/src/app/shared/modal/recipe-modal.component.html @@ -18,47 +18,57 @@ diff --git a/client/src/app/shared/modal/recipe-modal.component.ts b/client/src/app/shared/modal/recipe-modal.component.ts index d2a7cf9..312612b 100644 --- a/client/src/app/shared/modal/recipe-modal.component.ts +++ b/client/src/app/shared/modal/recipe-modal.component.ts @@ -8,6 +8,7 @@ interface RecipeDetail { name: string; otherName: string; description: string; + price: number; } @Component({ @@ -26,6 +27,7 @@ export class RecipeModalComponent { name: new FormControl(''), otherName: new FormControl(''), description: new FormControl(''), + price: new FormControl(0), }); originalRecipeDetail: RecipeDetail | null = null; @@ -60,6 +62,7 @@ export class RecipeModalComponent { name: recipe.name, otherName: recipe.otherName, description: recipe.Description, + price: recipe.cashPrice, }, { emitEvent: false } ); @@ -68,6 +71,7 @@ export class RecipeModalComponent { name: recipe.name, otherName: recipe.otherName, description: recipe.Description, + price: recipe.cashPrice, }; }); } diff --git a/server/.gitmodules b/server/.gitmodules deleted file mode 100644 index 977f21a..0000000 --- a/server/.gitmodules +++ /dev/null @@ -1,4 +0,0 @@ -[submodule "cofffeemachineConfig"] - path = cofffeemachineConfig - url = ssh://ikong@192.168.10.159/1TBHDD/ikong/repo/cofffeemachineConfig - branch = master