Skip to content
Snippets Groups Projects
Commit ba65dfcc authored by Masami  Suzuki's avatar Masami Suzuki Committed by Yas Naoi
Browse files

Issue #3388714 by Masami, yas: Fix the status messages when to launch, reboot,...

Issue #3388714 by Masami, yas: Fix the status messages when to launch, reboot, and stop an OpenStack Instance in SPA (drupal/cloud_dashboard)
parent d32ec1b9
Branches
Tags
1 merge request!2025Issue #3388714: Fix status messages when to launch, reboot, and stop an OpenStack Instance in SPA
Pipeline #23112 passed
......@@ -674,7 +674,15 @@ const EntityXxudPageImpl = ({ cloudContext, entityFormTemplate, entityName, enti
console.groupEnd();
// Status message.
const messageText = `The @type @label has been ${actionTypeLabel}d.`;
let actionTypeLabelPassive;
if (actionTypeLabel === 'stop') {
actionTypeLabelPassive = 'stopped';
} else {
actionTypeLabelPassive = actionTypeLabel.endsWith('e')
? `${actionTypeLabel}d`
: `${actionTypeLabel}ed`;
}
const messageText = `The @type @label has been ${actionTypeLabelPassive}.`;
const messageOption = {
args: {
'@type': entityTypeC,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment