Merge "feat: disable attach volume to the same vm"

This commit is contained in:
Zuul 2024-04-01 09:42:05 +00:00 committed by Gerrit Code Review
commit cb5a5fe1d2

View File

@ -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;