-
Notifications
You must be signed in to change notification settings - Fork 404
Open
Description
Hi,
I am using following code:
var i = 0;
Messenger().run({
errorMessage: 'Error destroying alien planet',
successMessage: 'Alien planet destroyed!',
label: 'Ok',
action: function(opts) {
if (++i < 2) {
return opts.error({
status: 500,
readyState: 0,
responseText: 0
});
} else {
return opts.success();
}
}
});
My purpose is to use this Messenger.Run to show User that the action they performed is happening (In progress) and they can cancel if they want and if not, it will be submitted.
(1) I want to change this code in a way that spinner template gets changed. And instead of showing red spinner i want to show green one. But i don't see any provision to that. In messenger-theme-future.css a template is mentioned and that is it.
(2) How to hide Retry Now button.
Please help. Thanks.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels