open-vault/ui/app/components/flash-message.js
Matthew Irish d509588cd2
Ember update (#5386)
Ember update - update ember-cli, ember-data, and ember to 3.4 series
2018-09-25 11:28:26 -05:00

16 lines
534 B
JavaScript

import { getWithDefault, computed } from '@ember/object';
import FlashMessage from 'ember-cli-flash/components/flash-message';
export default FlashMessage.extend({
// override alertType to get Bulma specific prefix
//https://github.com/poteto/ember-cli-flash/blob/master/addon/components/flash-message.js#L35
alertType: computed('flash.type', {
get() {
const flashType = getWithDefault(this, 'flash.type', '');
let prefix = 'notification has-border is-';
return `${prefix}${flashType}`;
},
}),
});