ingress model missing canHaveLabels property

rancher/rancher#15096
rancher/rancher#16112
This commit is contained in:
Westly Wright 2018-10-15 12:26:11 -07:00
parent e6499a5b67
commit ae709b3da9
No known key found for this signature in database
GPG Key ID: 4FAB3D8673DC54A3
3 changed files with 13 additions and 10 deletions

View File

@ -66,7 +66,7 @@
{{/if}} {{/if}}
{{/if}} {{/if}}
{{#unless editing}} {{#unless editing}}
<div class="pt-20"></div> <hr class="mt-20 mb-20"/>
{{/unless}} {{/unless}}
<div class="col {{if editing 'span-6' 'span-12'}}"> <div class="col {{if editing 'span-6' 'span-12'}}">
{{#if editing}} {{#if editing}}

View File

@ -4,14 +4,15 @@ import { reference } from 'ember-api-store/utils/denormalize';
import { inject as service } from '@ember/service'; import { inject as service } from '@ember/service';
export default Resource.extend({ export default Resource.extend({
clusterStore: service(), clusterStore: service(),
router: service(), router: service(),
type: 'ingress', type: 'ingress',
canClone: true, canClone: true,
canHaveLabels: true,
namespace: reference('namespaceId', 'namespace', 'clusterStore'), namespace: reference('namespaceId', 'namespace', 'clusterStore'),
targets: computed('rules.@each.paths', function() { targets: computed('rules.@each.paths', function() {
const out = []; const out = [];

View File

@ -24,10 +24,12 @@
{{else}} {{else}}
<div class="text-center"> <div class="text-center">
<div class="text-muted mb-20">{{t 'formSslTermination.noCertificatesConfiged'}}</div> <div class="text-muted mb-20">{{t 'formSslTermination.noCertificatesConfiged'}}</div>
<button class="btn bg-link icon-btn inline-block " {{action "addCert"}}> {{#if editing}}
<span class="darken"><i class="icon icon-plus text-small"></i></span> <button class="btn bg-link icon-btn inline-block " {{action "addCert"}}>
<span>{{t 'formSslTermination.addCertLabel'}}</span> <span class="darken"><i class="icon icon-plus text-small"></i></span>
</button> <span>{{t 'formSslTermination.addCertLabel'}}</span>
</button>
{{/if}}
</div> </div>
{{/each}} {{/each}}
{{#if (and editing allCertificates.length)}} {{#if (and editing allCertificates.length)}}