fix save recipe
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user