mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Fix for 2851. Added user account link.
This commit is contained in:
parent
c06715682e
commit
3a6947b483
2 changed files with 5 additions and 7 deletions
|
@ -1446,9 +1446,10 @@
|
|||
|
||||
// Setup logout control
|
||||
var logoutControl = '';
|
||||
if (logoutControls)
|
||||
if (logoutControls.name != null) { logoutControl = format("Welcome {0}.", logoutControls.name); }
|
||||
if (logoutControls.logoutUrl != null) { logoutControl += format(' <a href="' + logoutControls.logoutUrl + '" style="color:white">' + "Logout" + '</a>'); }
|
||||
if (logoutControls) {
|
||||
if (logoutControls.name != null) { logoutControl = ('<span onclick=go(2) style="color:white;cursor:pointer">' + format("Welcome {0}.", logoutControls.name) + '</span>'); }
|
||||
if (logoutControls.logoutUrl != null) { logoutControl += format(' <a href="' + logoutControls.logoutUrl + '" style="color:white">' + "Logout" + '</a>'); }
|
||||
}
|
||||
if (args.hide & 1) { QH('logoutControlSpan2', logoutControl); } else { QH('logoutControlSpan', logoutControl); }
|
||||
|
||||
// Setup the context menu
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue