mirror of https://github.com/rancher/ui.git
commit
ec34332c73
|
|
@ -81,7 +81,7 @@ export default Resource.extend(ResourceUsage, {
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
|
||||||
displayProvider: computed('configName','nodePools.firstObject.displayProvider','intl.locale', function() {
|
displayProvider: computed('configName','nodePools.@each.displayProvider','intl.locale', function() {
|
||||||
const intl = get(this, 'intl');
|
const intl = get(this, 'intl');
|
||||||
const pools = get(this,'nodePools');
|
const pools = get(this,'nodePools');
|
||||||
const firstPool = (pools||[]).objectAt(0);
|
const firstPool = (pools||[]).objectAt(0);
|
||||||
|
|
|
||||||
|
|
@ -64,5 +64,5 @@
|
||||||
{{else if projectController.projects.current.isKubernetes}}
|
{{else if projectController.projects.current.isKubernetes}}
|
||||||
<div class="m-40 text-center text-muted">Coming soon for Kubernetes clusters</div>
|
<div class="m-40 text-center text-muted">Coming soon for Kubernetes clusters</div>
|
||||||
{{else}}
|
{{else}}
|
||||||
{{empty-table resource="container" newRoute="volumes.new" newTranslationKey="generic.comingSoon" disabled=true}}
|
{{empty-table resource="container" newRoute="volumes.new" newTranslationKey="nav.containers.addVolume"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
||||||
|
|
@ -96,7 +96,9 @@ export default Component.extend(ViewNewEdit, ChildHook, {
|
||||||
} else {
|
} else {
|
||||||
set(pr, 'storageClassId', null);
|
set(pr, 'storageClassId', null);
|
||||||
set(pr, 'resources', null);
|
set(pr, 'resources', null);
|
||||||
set(pr, 'resources', Object.assign({}, get(pr,'volume.capacity')));
|
set(pr, 'resources', {
|
||||||
|
requests: Object.assign({}, get(pr, 'persistentVolume.capacity')),
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !get(this,'actuallySave') ) {
|
if ( !get(this,'actuallySave') ) {
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@ import { alias } from '@ember/object/computed';
|
||||||
import Component from '@ember/component';
|
import Component from '@ember/component';
|
||||||
import NewOrEdit from 'shared/mixins/new-or-edit';
|
import NewOrEdit from 'shared/mixins/new-or-edit';
|
||||||
import ModalBase from 'shared/mixins/modal-base';
|
import ModalBase from 'shared/mixins/modal-base';
|
||||||
|
import { set } from '@ember/object';
|
||||||
import layout from './template';
|
import layout from './template';
|
||||||
|
|
||||||
export default Component.extend(ModalBase, NewOrEdit, {
|
export default Component.extend(ModalBase, NewOrEdit, {
|
||||||
|
|
@ -16,6 +17,12 @@ export default Component.extend(ModalBase, NewOrEdit, {
|
||||||
primaryResource : alias('originalModel'),
|
primaryResource : alias('originalModel'),
|
||||||
errors : null,
|
errors : null,
|
||||||
|
|
||||||
|
actions: {
|
||||||
|
updateWhitelist(list) {
|
||||||
|
set(this, 'primaryResource.whitelistDomains', list);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
init() {
|
init() {
|
||||||
this._super(...arguments);
|
this._super(...arguments);
|
||||||
this.set('clone', this.get('originalModel').clone());
|
this.set('clone', this.get('originalModel').clone());
|
||||||
|
|
|
||||||
|
|
@ -25,4 +25,14 @@
|
||||||
<span class="text-info">{{t 'modalEditDriver.checksum.help'}}</span>
|
<span class="text-info">{{t 'modalEditDriver.checksum.help'}}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="inline-form pt-20">
|
||||||
|
{{form-value-array
|
||||||
|
initialValues=primaryResource.whitelistDomains
|
||||||
|
valueLabel="modalEditDriver.whitelist.label"
|
||||||
|
addActionLabel="modalEditDriver.whitelist.addActionLabel"
|
||||||
|
noDataLabel="modalEditDriver.whitelist.noData"
|
||||||
|
changed=(action "updateWhitelist")
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
|
||||||
{{save-cancel editing=editing save="save" cancel="cancel"}}
|
{{save-cancel editing=editing save="save" cancel="cancel"}}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
import Component from '@ember/component';
|
import Component from '@ember/component';
|
||||||
|
import { observer } from '@ember/object';
|
||||||
import { inject as service } from '@ember/service';
|
import { inject as service } from '@ember/service';
|
||||||
import { formatSi, parseSi } from 'shared/utils/parse-unit';
|
import { formatSi, parseSi } from 'shared/utils/parse-unit';
|
||||||
import layout from './template';
|
import layout from './template';
|
||||||
|
|
@ -19,6 +20,10 @@ export default Component.extend({
|
||||||
}, 150);
|
}, 150);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
updateDashboard: observer('nodes.@each.{allocatable,requested}', function () {
|
||||||
|
this.setDashboard();
|
||||||
|
}),
|
||||||
|
|
||||||
setDashboard() {
|
setDashboard() {
|
||||||
const cpuGauge = this.getCpuGauge();
|
const cpuGauge = this.getCpuGauge();
|
||||||
const memoryGauge = this.getMemoryGauge();
|
const memoryGauge = this.getMemoryGauge();
|
||||||
|
|
|
||||||
|
|
@ -4151,6 +4151,11 @@ modalEditDriver:
|
||||||
checksum:
|
checksum:
|
||||||
label: Checksum
|
label: Checksum
|
||||||
help: "Optional: Verify that the downloaded driver matches the expected checksum."
|
help: "Optional: Verify that the downloaded driver matches the expected checksum."
|
||||||
|
whitelist:
|
||||||
|
label: Whitelist Domains
|
||||||
|
addActionLabel: Add Domain
|
||||||
|
noData: No Domains
|
||||||
|
|
||||||
|
|
||||||
modalEditSetting:
|
modalEditSetting:
|
||||||
title: Edit Advanced Setting
|
title: Edit Advanced Setting
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue