Skip to content

Commit 4d5a58d

Browse files
author
Thomas Rueckstiess
committed
Enterprise detection, hostname and port separated
1 parent b33eedb commit 4d5a58d

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

src/sidebar/instance-properties.jade

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
div.instance-properties
2-
span.hostname(data-hook='hostname')
2+
span.hostname
3+
span(data-hook='hostname')
4+
|:
5+
span(data-hook='port')
36
span.version
4-
| version 
7+
span(data-hook='module')
8+
|  version 
59
span(data-hook='version')
610
div.db-stats
711
span.num-databases

src/sidebar/instance-properties.js

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,23 @@ var InstancePropertiesView = module.exports = View.extend({
1414
default: true
1515
}
1616
},
17+
derived: {
18+
module: {
19+
deps: ['instance.build.enterprise_module'],
20+
fn: function() {
21+
return app.instance.build.enterprise_module ? 'Enterprise' : 'Community';
22+
}
23+
}
24+
},
1725
bindings: {
18-
'instance.host.hostname': {
26+
'instance.hostname': {
1927
type: 'text',
2028
hook: 'hostname'
2129
},
30+
'instance.port': {
31+
type: 'text',
32+
hook: 'port'
33+
},
2234
'instance.build.version': {
2335
type: 'text',
2436
hook: 'version'
@@ -31,6 +43,10 @@ var InstancePropertiesView = module.exports = View.extend({
3143
type: 'text',
3244
hook: 'num-databases'
3345
},
46+
module: {
47+
type: 'text',
48+
hook: 'module'
49+
},
3450
is_fetching: {
3551
type: 'booleanClass',
3652
hook: 'refresh-icon',

0 commit comments

Comments
 (0)