Skip to content

How to change Messenger Spinner Color? #133

@hatanna64

Description

@hatanna64

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions