fix save recipe

This commit is contained in:
=
2020-08-07 12:02:26 +02:00
parent 3388520048
commit 90d3e33f2b
2 changed files with 10 additions and 2 deletions
@@ -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 {
@@ -150,10 +150,13 @@
<div class="process-container over">
<process-info :status="state.cycleProd.status">
<strong v-if="panel.nomeRicetta">{{panel.nomeRicetta}}</strong>
<strong v-else class="black"><i class="fa fa-exclamation-triangle"></i> {{'label_no_recipe' | localize("No Recipe loaded")}}</strong>
<strong v-else class="black">
<i class="fa fa-exclamation-triangle"></i>
{{'label_no_recipe' | localize("No Recipe loaded")}}
</strong>
</process-info>
</div>
<button class="over blue" :title="'recipe_save' | localize('save')">
<button class="over blue" :title="'recipe_save' | localize('save')" @click="saveRecipe()">
<i class="fa fa-save"></i>
</button>
<archinterface></archinterface>