Skip to content

Commit c681113

Browse files
committed
Merge pull request #124 from vincent99/master
Bug fixes
2 parents 609eaea + 856b280 commit c681113

File tree

8 files changed

+14
-26
lines changed

8 files changed

+14
-26
lines changed

app/components/loadbalancer-pod/template.hbs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
</div>
2222

2323
<div class="pod-info clearfix">
24-
<div class="pod-info-line">
25-
{{#each host in model.hosts}}
26-
<div class="pod-info-item"><i class="ss-link"></i> {{host.ipAddresses.firstObject.address}}</div>
27-
{{/each}}
28-
</div>
24+
{{#each host in model.hosts itemController="host"}}
25+
<div class="pod-info-line clip">
26+
<div class="pod-info-item"><i class="ss-link"></i> {{host.displayName}}: {{host.displayIp}}</div>
27+
</div>
28+
{{/each}}
2929
</div>
3030

3131
<div class="clearfix no-resource-action-hover">

app/components/page-header/template.hbs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@
3333
{{#link-to "apikeys" role="menuitem" tabindex="-1"}}API &amp; Keys{{/link-to}}
3434
</li>
3535

36-
<li role="presentation">
37-
{{#link-to "registries" role="menuitem" tabindex="-1"}}Registries{{/link-to}}
38-
</li>
39-
4036
{{#if app.isAuthenticationAdmin}}
4137
<li role="presentation">
4238
{{#link-to "settings.auth" role="menuitem" tabindex="-1"}}Access Control{{/link-to}}

app/loadbalancer/controller.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,6 @@ var LoadBalancerController = Cattle.TransitioningResourceController.extend({
3232
sortProperties: ['ipAddress', 'instance.name', 'instance.id', 'instanceId']
3333
});
3434
}.property('instances.[]','loadBalancerTargets.@each.{instanceId,ipAddress}'),
35-
36-
hostsBlurbs: function() {
37-
var ips = [];
38-
(this.get('hosts')||[]).forEach((host) => {
39-
var ip = host.get('ipAddresses.firstObject.address');
40-
if ( ip )
41-
{
42-
ips.push(ip);
43-
}
44-
});
45-
46-
return ips;
47-
}.property('hosts.[]').volatile(),
4835
});
4936

5037
LoadBalancerController.reopenClass({

app/loadbalancers/new/route.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export default Ember.Route.extend(AuthenticatedRouteMixin, {
3535
type: 'loadBalancerAppCookieStickinessPolicy',
3636
mode: 'path_parameters',
3737
requestLearn: true,
38+
prefix: false,
3839
timeout: 3600000,
3940
}),
4041
lbCookie: store.createRecord({

app/loadbalancers/route.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ import Ember from 'ember';
22

33
export default Ember.Route.extend({
44
model: function() {
5-
return this.get('store').findAllUnremoved('loadbalancer');
5+
var store = this.get('store');
6+
return store.findAllUnremoved('host').then(() => {
7+
return store.findAllUnremoved('loadbalancer');
8+
});
69
},
710
});

app/mixins/edit-container.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -659,11 +659,11 @@ export default Ember.Mixin.create(Cattle.NewOrEditMixin, {
659659
var out = ShellQuote.parse(this.get('strEntryPoint').trim()||'');
660660
if ( out.length )
661661
{
662-
this.set('entryPoint', out);
662+
this.set('instance.entryPoint', out);
663663
}
664664
else
665665
{
666-
this.set('entryPoint', null);
666+
this.set('instance.entryPoint', null);
667667
}
668668
}.observes('strEntryPoint'),
669669

app/templates/container/new-security.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<div class="col-sm-12 col-md-3">
3434
{{input id="cpuSet" type="text" value=instance.cpuSet classNames="form-control" placeholder="e.g. 0,3; Default: All"}}
3535
</div>
36-
<div class="col-sm-12 col-md-2 form-label" style="text-align: left">
36+
<div class="col-sm-12 col-md-2 form-label">
3737
<label for="cpuShares" class="form-control-static">Shares</label>
3838
</div>
3939
<div class="col-sm-12 col-md-3">

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "ui",
3+
"version": "0.16.2",
34
"private": true,
45
"directories": {
56
"doc": "doc",

0 commit comments

Comments
 (0)