Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change Messenger Spinner Color? #133

Open
hatanna64 opened this issue Dec 26, 2018 · 0 comments
Open

How to change Messenger Spinner Color? #133

hatanna64 opened this issue Dec 26, 2018 · 0 comments

Comments

@hatanna64
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant