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}}
{{#unless editing}}
<div class="pt-20"></div>
<hr class="mt-20 mb-20"/>
{{/unless}}
<div class="col {{if editing 'span-6' 'span-12'}}">
{{#if editing}}

View File

@ -4,14 +4,15 @@ import { reference } from 'ember-api-store/utils/denormalize';
import { inject as service } from '@ember/service';
export default Resource.extend({
clusterStore: service(),
router: service(),
clusterStore: 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() {
const out = [];

View File

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