fix: fix bootable volume action notice
1. Fix bootable volume action name 2. Remove useless code for online resize instance action Change-Id: Ibd5e2dc958c0bdbc0b5d53a3e628f334cb93a530
This commit is contained in:
parent
1170f73dd5
commit
a8ff91c219
@ -106,7 +106,6 @@ export class FlavorSelectTable extends Component {
|
|||||||
get flavors() {
|
get flavors() {
|
||||||
const {
|
const {
|
||||||
flavor,
|
flavor,
|
||||||
online,
|
|
||||||
isIronic = false,
|
isIronic = false,
|
||||||
filterIronic = true,
|
filterIronic = true,
|
||||||
excludeFlavors = [],
|
excludeFlavors = [],
|
||||||
@ -127,16 +126,6 @@ export class FlavorSelectTable extends Component {
|
|||||||
if (!flavor) {
|
if (!flavor) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (online) {
|
|
||||||
const currentFlavor = (toJS(this.flavorStore.list.data) || []).find(
|
|
||||||
(f) => f.name === flavor
|
|
||||||
);
|
|
||||||
return (
|
|
||||||
it.vcpus >= currentFlavor.vcpus &&
|
|
||||||
it.ram >= currentFlavor.ram &&
|
|
||||||
it.name !== flavor
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return it.name !== flavor;
|
return it.name !== flavor;
|
||||||
})
|
})
|
||||||
.filter((it) => {
|
.filter((it) => {
|
||||||
|
@ -29,6 +29,11 @@ export class Bootable extends ModalAction {
|
|||||||
return Promise.resolve(true);
|
return Promise.resolve(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get name() {
|
||||||
|
const { bootable } = this.values;
|
||||||
|
return bootable ? t('Bootable') : t('Unbootable');
|
||||||
|
}
|
||||||
|
|
||||||
get defaultValue() {
|
get defaultValue() {
|
||||||
const { item } = this.props;
|
const { item } = this.props;
|
||||||
return {
|
return {
|
||||||
|
@ -399,16 +399,6 @@ export class ServerStore extends Base {
|
|||||||
return this.operation({ body, id });
|
return this.operation({ body, id });
|
||||||
}
|
}
|
||||||
|
|
||||||
@action
|
|
||||||
async liveResize({ id, flavor }) {
|
|
||||||
const body = {
|
|
||||||
liveResize: {
|
|
||||||
flavorRef: flavor,
|
|
||||||
},
|
|
||||||
};
|
|
||||||
return this.operation({ body, id });
|
|
||||||
}
|
|
||||||
|
|
||||||
@action
|
@action
|
||||||
async migrate({ id, body }) {
|
async migrate({ id, body }) {
|
||||||
if (body) {
|
if (body) {
|
||||||
|
Loading…
Reference in New Issue
Block a user