Skip to content

Commit

Permalink
Enterprise detection, hostname and port separated
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Rueckstiess committed Oct 12, 2015
1 parent b33eedb commit 4d5a58d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/sidebar/instance-properties.jade
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
div.instance-properties
span.hostname(data-hook='hostname')
span.hostname
span(data-hook='hostname')
|:
span(data-hook='port')
span.version
| version 
span(data-hook='module')
|  version 
span(data-hook='version')
div.db-stats
span.num-databases
Expand Down
18 changes: 17 additions & 1 deletion src/sidebar/instance-properties.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,23 @@ var InstancePropertiesView = module.exports = View.extend({
default: true
}
},
derived: {
module: {
deps: ['instance.build.enterprise_module'],
fn: function() {
return app.instance.build.enterprise_module ? 'Enterprise' : 'Community';
}
}
},
bindings: {
'instance.host.hostname': {
'instance.hostname': {
type: 'text',
hook: 'hostname'
},
'instance.port': {
type: 'text',
hook: 'port'
},
'instance.build.version': {
type: 'text',
hook: 'version'
Expand All @@ -31,6 +43,10 @@ var InstancePropertiesView = module.exports = View.extend({
type: 'text',
hook: 'num-databases'
},
module: {
type: 'text',
hook: 'module'
},
is_fetching: {
type: 'booleanClass',
hook: 'refresh-icon',
Expand Down

0 comments on commit 4d5a58d

Please sign in to comment.