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';
|
||||
}
|
||||
|
||||
disabledInstance = (ins) => !allowAttachVolumeInstance(ins);
|
||||
disabledInstance = (ins) =>
|
||||
!allowAttachVolumeInstance(ins) || this.alreadyAttached(ins);
|
||||
|
||||
get defaultValue() {
|
||||
const { name, id, size, volume_type } = this.item;
|
||||
|
Loading…
x
Reference in New Issue
Block a user