2018-11-02 16:02:45 +00:00
|
|
|
import Component from '@ember/component';
|
|
|
|
import { computed } from '@ember/object';
|
|
|
|
|
|
|
|
import { messageTypes } from 'vault/helpers/message-types';
|
|
|
|
|
|
|
|
export default Component.extend({
|
|
|
|
type: null,
|
2019-02-14 15:39:19 +00:00
|
|
|
message: null,
|
2018-11-02 16:02:45 +00:00
|
|
|
|
|
|
|
classNames: ['message-inline'],
|
|
|
|
|
|
|
|
textClass: computed('type', function() {
|
|
|
|
if (this.get('type') == 'danger') {
|
|
|
|
return messageTypes([this.get('type')]).glyphClass;
|
|
|
|
}
|
|
|
|
|
2018-11-05 16:56:59 +00:00
|
|
|
return;
|
2018-11-02 16:02:45 +00:00
|
|
|
}),
|
|
|
|
|
|
|
|
alertType: computed('type', function() {
|
|
|
|
return messageTypes([this.get('type')]);
|
|
|
|
}),
|
|
|
|
});
|