HubSpot / messenger

Growl-style alerts and messages for your app. #hubspot-open-source
http://github.hubspot.com/messenger/
MIT License
4.03k stars 408 forks source link

How to change Messenger Spinner Color? #133

Open hatanna64 opened 5 years ago

hatanna64 commented 5 years ago

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.