mirror of
https://github.com/skylord123/node-red-contrib-gamedig.git
synced 2025-04-18 20:13:06 -06:00
Fix for name field not working
This commit is contained in:
parent
a2a4f47604
commit
36afa961a3
@ -13,11 +13,15 @@
|
|||||||
outputs:1,
|
outputs:1,
|
||||||
icon: "icons/server.png",
|
icon: "icons/server.png",
|
||||||
label: function() {
|
label: function() {
|
||||||
|
if(this.name){
|
||||||
|
return this.name;
|
||||||
|
}
|
||||||
|
|
||||||
if(this.host) {
|
if(this.host) {
|
||||||
return (this.server_type ? this.server_type : 'Query') + ': ' + this.host + (this.port ? ":" + this.port : '');
|
return (this.server_type ? this.server_type : 'Query') + ': ' + this.host + (this.port ? ":" + this.port : '');
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.name || 'Query Game Server';
|
return 'Query Game Server';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user