How to use the ember-notify.testing function in ember-notify

To help you get started, we’ve selected a few ember-notify examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github adopted-ember-addons / ember-notify / addon / components / ember-notify / message.js View on Github external
init() {
    this._super(...arguments);

    // Indicate that the message is now being displayed
    if (this.message.visible === undefined) {
      // Should really be in didInsertElement but Glimmer doesn't allow this
      this.set('message.visible', true);
    }

    this.run = Runner.create({ disabled: !Notify.testing });
  },