How to use the ember-cli-flash/components/flash-message.extend function in ember-cli-flash

To help you get started, we’ve selected a few ember-cli-flash 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 hashicorp / vault / ui / app / components / flash-message.js View on Github external
import { computed } from '@ember/object';
import FlashMessage from 'ember-cli-flash/components/flash-message';

export default FlashMessage.extend({
  // override alertType to get Bulma specific prefix
  alertType: computed('flash.type', {
    get() {
      const flashType = this.flash.type || '';
      let prefix = 'is-';

      return `${prefix}${flashType}`;