mirror of
				https://github.com/Ylianst/MeshCentral.git
				synced 2025-03-09 15:40:18 +00:00 
			
		
		
		
	Fix for #3194
This commit is contained in:
		
							parent
							
								
									8012a10fea
								
							
						
					
					
						commit
						38fa6a9004
					
				
					 2 changed files with 13 additions and 9 deletions
				
			
		| 
						 | 
					@ -847,10 +847,14 @@ var CreateAmtRemoteDesktop = function (divid, scrolldiv) {
 | 
				
			||||||
        if (event.addy) { obj.my += event.addy; }
 | 
					        if (event.addy) { obj.my += event.addy; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        // ###BEGIN###{DesktopRotation}
 | 
					        // ###BEGIN###{DesktopRotation}
 | 
				
			||||||
 | 
					        if ((obj.rotation == 1) || (obj.rotation == 3)) {
 | 
				
			||||||
 | 
					            obj.mx = ((obj.mx * obj.rwidth) / obj.width);
 | 
				
			||||||
 | 
					            obj.my = ((obj.my * obj.rheight) / obj.height);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
        if (obj.noMouseRotate != true) {
 | 
					        if (obj.noMouseRotate != true) {
 | 
				
			||||||
            obj.mx2 = _crotX(obj.mx, obj.my);
 | 
					            var mx2 = _crotX(obj.mx, obj.my);
 | 
				
			||||||
            obj.my = _crotY(obj.mx, obj.my);
 | 
					            obj.my = _crotY(obj.mx, obj.my);
 | 
				
			||||||
            obj.mx = obj.mx2;
 | 
					            obj.mx = mx2;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        // ###END###{DesktopRotation}
 | 
					        // ###END###{DesktopRotation}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -3215,17 +3215,17 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                                // Show the notification
 | 
					                                // Show the notification
 | 
				
			||||||
                                if (n & 2) {
 | 
					                                if (n & 2) {
 | 
				
			||||||
                                    var agentPrivilages = '';
 | 
					                                    var agentPrivilages = "Agent connected";
 | 
				
			||||||
                                    if ((node.agent != null) && (node.agent.root === false)) { agentPrivilages = ', <span title="' + "Agent is running on remote device with reduced privilages." + '">' + "Restricted" + '</span>'; }
 | 
					                                    if ((node.agent != null) && (node.agent.root === false)) { "Agent connected with limited privilages"; }
 | 
				
			||||||
                                    if (((node.conn & 1) == 0) && ((message.event.conn & 1) != 0)) { addNotification({ text: "Agent connected" + agentPrivilages, title: node.name, icon: node.icon, nodeid: node._id }); }
 | 
					                                    if (((node.conn & 1) == 0) && ((message.event.conn & 1) != 0)) { addNotification({ text: agentPrivilages, title: node.name, icon: node.icon, nodeid: node._id }); }
 | 
				
			||||||
                                    if (((node.conn & 2) == 0) && ((message.event.conn & 2) != 0)) { addNotification({ text: "Intel® AMT detected", title: node.name, icon: node.icon, nodeid: node._id }); }
 | 
					                                    if (((node.conn & 2) == 0) && ((message.event.conn & 2) != 0)) { addNotification({ text: "Intel AMT detected", title: node.name, icon: node.icon, nodeid: node._id }); }
 | 
				
			||||||
                                    if (((node.conn & 4) == 0) && ((message.event.conn & 4) != 0)) { addNotification({ text: "Intel® AMT CIRA connected", title: node.name, icon: node.icon, nodeid: node._id }); }
 | 
					                                    if (((node.conn & 4) == 0) && ((message.event.conn & 4) != 0)) { addNotification({ text: "Intel AMT CIRA connected", title: node.name, icon: node.icon, nodeid: node._id }); }
 | 
				
			||||||
                                    if (((node.conn & 16) == 0) && ((message.event.conn & 16) != 0)) { addNotification({ text: "MQTT connected", title: node.name, icon: node.icon, nodeid: node._id }); }
 | 
					                                    if (((node.conn & 16) == 0) && ((message.event.conn & 16) != 0)) { addNotification({ text: "MQTT connected", title: node.name, icon: node.icon, nodeid: node._id }); }
 | 
				
			||||||
                                }
 | 
					                                }
 | 
				
			||||||
                                if (n & 4) {
 | 
					                                if (n & 4) {
 | 
				
			||||||
                                    if (((node.conn & 1) != 0) && ((message.event.conn & 1) == 0)) { addNotification({ text: "Agent disconnected", title: node.name, icon: node.icon, nodeid: node._id }); }
 | 
					                                    if (((node.conn & 1) != 0) && ((message.event.conn & 1) == 0)) { addNotification({ text: "Agent disconnected", title: node.name, icon: node.icon, nodeid: node._id }); }
 | 
				
			||||||
                                    if (((node.conn & 2) != 0) && ((message.event.conn & 2) == 0)) { addNotification({ text: "Intel® AMT not detected", title: node.name, icon: node.icon, nodeid: node._id }); }
 | 
					                                    if (((node.conn & 2) != 0) && ((message.event.conn & 2) == 0)) { addNotification({ text: "Intel AMT not detected", title: node.name, icon: node.icon, nodeid: node._id }); }
 | 
				
			||||||
                                    if (((node.conn & 4) != 0) && ((message.event.conn & 4) == 0)) { addNotification({ text: "Intel® AMT CIRA disconnected", title: node.name, icon: node.icon, nodeid: node._id }); }
 | 
					                                    if (((node.conn & 4) != 0) && ((message.event.conn & 4) == 0)) { addNotification({ text: "Intel AMT CIRA disconnected", title: node.name, icon: node.icon, nodeid: node._id }); }
 | 
				
			||||||
                                    if (((node.conn & 16) != 0) && ((message.event.conn & 16) == 0)) { addNotification({ text: "MQTT disconnected", title: node.name, icon: node.icon, nodeid: node._id }); }
 | 
					                                    if (((node.conn & 16) != 0) && ((message.event.conn & 16) == 0)) { addNotification({ text: "MQTT disconnected", title: node.name, icon: node.icon, nodeid: node._id }); }
 | 
				
			||||||
                                }
 | 
					                                }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue