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() {
|
||||
const {
|
||||
flavor,
|
||||
online,
|
||||
isIronic = false,
|
||||
filterIronic = true,
|
||||
excludeFlavors = [],
|
||||
@ -127,16 +126,6 @@ export class FlavorSelectTable extends Component {
|
||||
if (!flavor) {
|
||||
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;
|
||||
})
|
||||
.filter((it) => {
|
||||
|
@ -29,6 +29,11 @@ export class Bootable extends ModalAction {
|
||||
return Promise.resolve(true);
|
||||
}
|
||||
|
||||
get name() {
|
||||
const { bootable } = this.values;
|
||||
return bootable ? t('Bootable') : t('Unbootable');
|
||||
}
|
||||
|
||||
get defaultValue() {
|
||||
const { item } = this.props;
|
||||
return {
|
||||
|
@ -399,16 +399,6 @@ export class ServerStore extends Base {
|
||||
return this.operation({ body, id });
|
||||
}
|
||||
|
||||
@action
|
||||
async liveResize({ id, flavor }) {
|
||||
const body = {
|
||||
liveResize: {
|
||||
flavorRef: flavor,
|
||||
},
|
||||
};
|
||||
return this.operation({ body, id });
|
||||
}
|
||||
|
||||
@action
|
||||
async migrate({ id, body }) {
|
||||
if (body) {
|
||||
|
Loading…
Reference in New Issue
Block a user