26 lines
579 B
JavaScript
26 lines
579 B
JavaScript
import Ember from 'ember';
|
|
|
|
export default Ember.Component.extend({
|
|
tagName: 'span',
|
|
classNames: ['status-icon', 'icon'],
|
|
classNameBindings: ['event', 'state'],
|
|
|
|
isPush: function() {
|
|
return this.get('event') === 'push';
|
|
}.property('event'),
|
|
|
|
isPR: function() {
|
|
return this.get('event') === 'pull_request';
|
|
}.property('event'),
|
|
|
|
isAPI: function() {
|
|
return this.get('event') === 'api';
|
|
}.property('event'),
|
|
|
|
isEmpty: function() {
|
|
if (this.get('event') === null || this.get('event') === null) {
|
|
return true;
|
|
}
|
|
}.property('event')
|
|
});
|