Merge "feat: disable attach volume to the same vm"
This commit is contained in:
commit
cb5a5fe1d2
@ -48,7 +48,8 @@ export class Attach extends ModalAction {
|
|||||||
return 'large';
|
return 'large';
|
||||||
}
|
}
|
||||||
|
|
||||||
disabledInstance = (ins) => !allowAttachVolumeInstance(ins);
|
disabledInstance = (ins) =>
|
||||||
|
!allowAttachVolumeInstance(ins) || this.alreadyAttached(ins);
|
||||||
|
|
||||||
get defaultValue() {
|
get defaultValue() {
|
||||||
const { name, id, size, volume_type } = this.item;
|
const { name, id, size, volume_type } = this.item;
|
||||||
|
Loading…
Reference in New Issue
Block a user