mirror of
https://github.com/skylord123/node-red-contrib-gamedig.git
synced 2025-04-18 03:53:03 -06:00
Change how names for nodes are displayed
This commit is contained in:
parent
52bddfa603
commit
a2a4f47604
@ -14,7 +14,7 @@
|
|||||||
icon: "icons/server.png",
|
icon: "icons/server.png",
|
||||||
label: function() {
|
label: function() {
|
||||||
if(this.host) {
|
if(this.host) {
|
||||||
return `Query: ${this.host}`;
|
return (this.server_type ? this.server_type : 'Query') + ': ' + this.host + (this.port ? ":" + this.port : '');
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.name || 'Query Game Server';
|
return this.name || 'Query Game Server';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user