mirror of https://github.com/rancher/ui.git
add stack name to service details
This commit is contained in:
parent
c3238bafd0
commit
a87e1e5218
|
|
@ -17,6 +17,9 @@ export default Ember.Route.extend({
|
||||||
if (model.get('service.initPorts')) {
|
if (model.get('service.initPorts')) {
|
||||||
model.get('service').initPorts();
|
model.get('service').initPorts();
|
||||||
}
|
}
|
||||||
|
if (model.get('service.stackId')) {
|
||||||
|
model.set('stack', this.get('store').getById('stack', model.get('service.stackId')));
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
getServiceLogs(serviceId) {
|
getServiceLogs(serviceId) {
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,28 @@
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<div class="row banner bg-info basics">
|
<div class="row banner bg-info basics">
|
||||||
|
{{#if service.externalIpAddresses}}
|
||||||
|
<div class="inline-block">
|
||||||
|
<label class="text-muted ml-15">{{t 'servicePage.external.externalIp' count=service.externalIpAddresses.length}}</label>
|
||||||
|
{{join-array service.externalIpAddresses}}
|
||||||
|
</div>
|
||||||
|
{{else if service.hostname}}
|
||||||
|
<div class="inline-block">
|
||||||
|
<label class="text-muted">{{t 'servicePage.external.externalHostname'}} </label> {{service.hostname}}
|
||||||
|
</div>
|
||||||
|
{{else if service.selector}}
|
||||||
|
<div class="inline-block">
|
||||||
|
<label class="text-muted">{{t 'servicePage.selector.label'}} </label> {{service.selector}}
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{#if service.hasImage}}
|
||||||
|
<div class="inline-block">
|
||||||
|
<label class="acc-label p-0">{{t 'servicePage.multistat.image'}}</label>
|
||||||
|
{{fixedLaunchConfig.image}} {{copy-to-clipboard clipboardText=fixedLaunchConfig.image size="small"}}
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
{{#if fixedLaunchConfig.memoryReservation}}
|
{{#if fixedLaunchConfig.memoryReservation}}
|
||||||
<div class="inline-block">
|
<div class="inline-block">
|
||||||
<label class="acc-label p-0">{{t 'containersPage.containerPage.infoMultiStats.memoryReservation.labelText'}}</label>
|
<label class="acc-label p-0">{{t 'containersPage.containerPage.infoMultiStats.memoryReservation.labelText'}}</label>
|
||||||
|
|
@ -57,27 +79,14 @@
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if service.hasImage}}
|
|
||||||
|
{{#if model.stack}}
|
||||||
<div class="inline-block">
|
<div class="inline-block">
|
||||||
<label class="acc-label p-0">{{t 'servicePage.multistat.image'}}</label>
|
<label class="acc-label p-0">{{t 'generic.stack'}}:</label>
|
||||||
{{fixedLaunchConfig.image}} {{copy-to-clipboard clipboardText=fixedLaunchConfig.image size="small"}}
|
{{#link-to "stack" projects.current.id model.stack.id}}{{model.stack.displayName}}{{/link-to}}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if service.externalIpAddresses}}
|
|
||||||
<div class="inline-block">
|
|
||||||
<label class="text-muted ml-15">{{t 'servicePage.external.externalIp' count=service.externalIpAddresses.length}}</label>
|
|
||||||
{{join-array service.externalIpAddresses}}
|
|
||||||
</div>
|
|
||||||
{{else if service.hostname}}
|
|
||||||
<div class="inline-block">
|
|
||||||
<label class="text-muted">{{t 'servicePage.external.externalHostname'}} </label> {{service.hostname}}
|
|
||||||
</div>
|
|
||||||
{{else if service.selector}}
|
|
||||||
<div class="inline-block">
|
|
||||||
<label class="text-muted">{{t 'servicePage.selector.label'}} </label> {{service.selector}}
|
|
||||||
</div>
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue