From 09da336e9cec7295a9269fd1446a24f4ca94a742 Mon Sep 17 00:00:00 2001 From: pengyuesheng Date: Fri, 22 Feb 2019 13:59:57 +0800 Subject: [PATCH] Correct the prompt message when creating a volume in the image panel Even when creating a volume fails, the message type was success. It is better to change the message type to info as a volume creation might fail when the message is shown. Change-Id: I1606745a83b33339db3e9cf8b5edebd6b1b3e4f8 Closes-Bug: #1817253 --- .../static/app/core/images/actions/create-volume.service.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openstack_dashboard/static/app/core/images/actions/create-volume.service.js b/openstack_dashboard/static/app/core/images/actions/create-volume.service.js index 9b9b87dcb9..e79466abcc 100644 --- a/openstack_dashboard/static/app/core/images/actions/create-volume.service.js +++ b/openstack_dashboard/static/app/core/images/actions/create-volume.service.js @@ -59,7 +59,7 @@ var createVolumePromise, volumeServiceEnabledPromise; var message = { - success: gettext('Volume %s was successfully created.') + info: gettext('Creating volume %s') }; var service = { @@ -103,7 +103,7 @@ function showSuccessMessage(response) { var volume = response.data; - toast.add('success', interpolate(message.success, [volume.name])); + toast.add('info', interpolate(message.info, [volume.name])); // To make the result of this action generically useful, reformat the return // from the deleteModal into a standard form