Fix HMI Behaviour
This commit is contained in:
@@ -185,14 +185,6 @@ if (typeof cmsClient != "undefined") {
|
||||
else
|
||||
stopDrag()
|
||||
});
|
||||
|
||||
|
||||
|
||||
/* Factory.Get(MessageService).subscribeToChannel("HMI-end-render", args => {
|
||||
clearTimeout(RerenderInterval);
|
||||
RerenderInterval = setTimeout(ElaborateHMIStatus, 15);
|
||||
}); */
|
||||
|
||||
}
|
||||
|
||||
//Private functions for HMI State (show-functions):
|
||||
@@ -222,35 +214,21 @@ function ShowHmiProduction(){
|
||||
}
|
||||
|
||||
//Private functions for HMI State (hide-functions):
|
||||
/** 22/01/18 Method to delete glitch
|
||||
* 1) Send message to UI -> Re-render HMI image -> Channel "HMI-start-render"
|
||||
* 2) Wait UI Render the new image -> Channel "HMI-end-render"
|
||||
* 3) Hide HMI
|
||||
* */
|
||||
function HideHmi() {
|
||||
HMIvisible = false;
|
||||
/*
|
||||
if(HMIvisibleInProduction){
|
||||
HMIvisibleInProduction = false;
|
||||
HMIprodTimeout = setTimeout(ShowHmiProduction, 700);
|
||||
}*/
|
||||
ElaborateHMIStatus();
|
||||
//Factory.Get(MessageService).publishToChannel("HMI-start-render");
|
||||
}
|
||||
function showAlarms() {
|
||||
HMIAlarmsVisible = true;
|
||||
ElaborateHMIStatus();
|
||||
//Factory.Get(MessageService).publishToChannel("HMI-start-render");
|
||||
}
|
||||
function showModal() {
|
||||
HMIModalsVisible = true;
|
||||
ElaborateHMIStatus();
|
||||
//Factory.Get(MessageService).publishToChannel("HMI-start-render");
|
||||
}
|
||||
function startDrag() {
|
||||
HMIDragging = true;
|
||||
ElaborateHMIStatus();
|
||||
//Factory.Get(MessageService).publishToChannel("HMI-start-render");
|
||||
}
|
||||
|
||||
function HideHmiProduction(){
|
||||
|
||||
@@ -118,6 +118,10 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
beforeDestroy: function () {
|
||||
Factory.Get(MessageService).publishToChannel("HMI-production-hide");
|
||||
Factory.Get(MessageService).publishToChannel("HMI-production-hide-state");
|
||||
},
|
||||
methods:{
|
||||
selectHead(h){
|
||||
this.selectedHead = h;
|
||||
|
||||
Reference in New Issue
Block a user