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
This commit is contained in:
pengyuesheng 2019-02-22 13:59:57 +08:00 committed by Akihiro Motoki
parent 1ace678b2d
commit 09da336e9c
1 changed files with 2 additions and 2 deletions

View File

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