mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-01-12 07:23:21 -05:00
Use real name in agent message box, #3654
This commit is contained in:
parent
bc6d3ce8a0
commit
1b49f64498
@ -1076,6 +1076,8 @@ function handleServerCommand(data) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'messagebox': {
|
case 'messagebox': {
|
||||||
|
sendConsoleText(JSON.stringify(data));
|
||||||
|
|
||||||
// Display a message box
|
// Display a message box
|
||||||
if (data.title && data.msg)
|
if (data.title && data.msg)
|
||||||
{
|
{
|
||||||
@ -1095,6 +1097,7 @@ function handleServerCommand(data) {
|
|||||||
ipr.title = data.title;
|
ipr.title = data.title;
|
||||||
ipr.message = data.msg;
|
ipr.message = data.msg;
|
||||||
ipr.username = data.username;
|
ipr.username = data.username;
|
||||||
|
if (data.realname && (data.realname != '')) { ipr.username = data.realname; }
|
||||||
global._clientmessage = ipr.then(function (img)
|
global._clientmessage = ipr.then(function (img)
|
||||||
{
|
{
|
||||||
this.messagebox = require('win-dialog').create(this.title, this.message, this.username, { timeout: 120000, b64Image: img.split(',').pop(), background: color_options.background, foreground: color_options.foreground });
|
this.messagebox = require('win-dialog').create(this.title, this.message, this.username, { timeout: 120000, b64Image: img.split(',').pop(), background: color_options.background, foreground: color_options.foreground });
|
||||||
|
Loading…
Reference in New Issue
Block a user