From 90d3e33f2b5a4b0960c8bfe982dca33d896ffae9 Mon Sep 17 00:00:00 2001 From: = Date: Fri, 7 Aug 2020 12:02:26 +0200 Subject: [PATCH] fix save recipe --- Thermo.Active/wwwroot/src/modules/app-header.ts | 5 +++++ Thermo.Active/wwwroot/src/modules/app-header.vue | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Thermo.Active/wwwroot/src/modules/app-header.ts b/Thermo.Active/wwwroot/src/modules/app-header.ts index cadd5d71..bd9e3a9f 100644 --- a/Thermo.Active/wwwroot/src/modules/app-header.ts +++ b/Thermo.Active/wwwroot/src/modules/app-header.ts @@ -9,6 +9,7 @@ import AppRibbon from "@/components/app-ribbon.vue"; import UserInfo from "@/app_modules/machine/components/user-info.vue"; import { Prop } from "vue-property-decorator"; import Archinterface from "@/app_modules_thermo/components/arch-interface/arch-interface.vue"; +import { recipeService } from "@/services/recipeService"; declare let $: any; @@ -112,6 +113,10 @@ export default class AppHeader extends Vue { // Hub.Current.sendPowerCommand(btn.id); } + + async saveRecipe() { + await recipeService.Save(); + } } enum ribbonStatusEnum { diff --git a/Thermo.Active/wwwroot/src/modules/app-header.vue b/Thermo.Active/wwwroot/src/modules/app-header.vue index c4081e89..cedfd55f 100644 --- a/Thermo.Active/wwwroot/src/modules/app-header.vue +++ b/Thermo.Active/wwwroot/src/modules/app-header.vue @@ -150,10 +150,13 @@
{{panel.nomeRicetta}} - {{'label_no_recipe' | localize("No Recipe loaded")}} + + + {{'label_no_recipe' | localize("No Recipe loaded")}} +
-