FIx load recipe
This commit is contained in:
@@ -24,8 +24,8 @@
|
||||
<div>{{actual}}/</div>
|
||||
<button @click="editProd" class="btn" v-if="inAuto && tot != 0">{{tot}}</button>
|
||||
<button @click="editProd" class="btn" v-if="inAuto && tot == 0">--</button>
|
||||
<div @click="editProd" class="totp" v-if="!inAuto && tot != 0">{{tot}}</div>
|
||||
<div @click="editProd" class="totp" v-if="!inAuto && tot == 0">--</div>
|
||||
<div class="totp" v-if="!inAuto && tot != 0">{{tot}}</div>
|
||||
<div class="totp" v-if="!inAuto && tot == 0">--</div>
|
||||
</label>
|
||||
</div>
|
||||
<gantt
|
||||
|
||||
@@ -85,9 +85,11 @@ export default class ModalLoadProgram extends Vue {
|
||||
}
|
||||
|
||||
get canLoadProgram() {
|
||||
return this.$store.state.process.canLoadProgram;
|
||||
if(this.$store.state.machineStatus.cycleProd) return false
|
||||
return this.$store.state.machineStatus.cycleProd.mode!=2;
|
||||
}
|
||||
|
||||
|
||||
async duplicate() {
|
||||
let result = await ModalHelper.ShowModalAsync(duplicateModal, { name: this.selectedFile.Name, folder: this.currentPath });
|
||||
this.relaodFiles();
|
||||
|
||||
@@ -251,8 +251,7 @@
|
||||
<div class="modal-load-program-footer">
|
||||
<button
|
||||
class="btn btn-success"
|
||||
:disabled="!selectedFile || fileIsChanged || loadClicked"
|
||||
v-if="this.isLocalNavigation"
|
||||
:disabled="!selectedFile || fileIsChanged || loadClicked || !canLoadProgram"
|
||||
@click="load(selectedFile)"
|
||||
>{{'modal_load_program_btn_upload_recipe' | localize('Carica e attiva ricetta')}}</button>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user