HubSpot/messenger

How to change Messenger Spinner Color?

Opened this issue · 0 comments

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.