Fix: fix error message of batch deleting
Fix volume name for volume snapshot batch deleting Change-Id: I4858d9315397fa2833f34e0ec56d634780946755
This commit is contained in:
parent
0dd9dd0062
commit
1919a36870
@ -51,7 +51,7 @@ export default class DeleteAction extends ConfirmAction {
|
|||||||
name: snapshot.name,
|
name: snapshot.name,
|
||||||
});
|
});
|
||||||
if (this.hasCreatedVolumes(snapshot)) {
|
if (this.hasCreatedVolumes(snapshot)) {
|
||||||
const volumeNames = child_volumes.join(', ');
|
const volumeNames = child_volumes.map((it) => it.volume_name).join(', ');
|
||||||
errorMsg = t(
|
errorMsg = t(
|
||||||
'You are not allowed to delete snapshot "{ name }", which is used by creating volume "{volumes}".',
|
'You are not allowed to delete snapshot "{ name }", which is used by creating volume "{volumes}".',
|
||||||
{ name: snapshot.name, volumes: volumeNames }
|
{ name: snapshot.name, volumes: volumeNames }
|
||||||
|
Loading…
Reference in New Issue
Block a user