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.
Closes-Bug:
var createVolumePromise, volumeServiceEnabledPromise;
var message = {
- success: gettext('Volume %s was successfully created.')
+ info: gettext('Creating volume %s')
};
var service = {
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
