Feature: Add cluster name in text field (#271)

* Add cluster name in text field

* Change double quote to single quote
This commit is contained in:
Minuk Song
2020-08-29 19:05:59 +09:00
committed by GitHub
parent ac6eeb4d78
commit 9965665290

View File

@@ -160,7 +160,7 @@ export default class Cluster extends PIXI.Graphics {
topHandle.on('click', function(_event) {
App.current.toggleCluster(that.cluster.id)
})
const text = new PIXI.Text(this.cluster.api_server_url, {fontFamily: 'ShareTechMono', fontSize: 10, fill: 0x000000})
const text = new PIXI.Text(''.concat(this.cluster.api_server_url, ' (', this.cluster.id, ')'), {fontFamily: 'ShareTechMono', fontSize: 10, fill: 0x000000})
text.x = 2
text.y = 2
topHandle.addChild(text)