remove coffee file
This commit is contained in:
parent
f5211f1fdc
commit
4edd1feaad
|
@ -1,49 +0,0 @@
|
||||||
`import Ember from 'ember'`
|
|
||||||
|
|
||||||
StatusIconComponent = Ember.Component.extend
|
|
||||||
|
|
||||||
tagName: 'span'
|
|
||||||
classNames: ['status-icon', 'icon']
|
|
||||||
classNameBindings: ['status']
|
|
||||||
attributeBindings: ['label:aria-label','label:title']
|
|
||||||
|
|
||||||
label: (->
|
|
||||||
"Job #{@get('status')}"
|
|
||||||
).property('status')
|
|
||||||
|
|
||||||
hasPassed: (->
|
|
||||||
@get('status') == 'passed' || @get('status') == 'accepted'
|
|
||||||
).property('status')
|
|
||||||
|
|
||||||
hasFailed: (->
|
|
||||||
@get('status') == 'failed' || @get('status') == 'rejected'
|
|
||||||
).property('status')
|
|
||||||
|
|
||||||
hasErrored: (->
|
|
||||||
@get('status') == 'errored'
|
|
||||||
).property('status')
|
|
||||||
|
|
||||||
wasCanceled: (->
|
|
||||||
@get('status') == 'canceled'
|
|
||||||
).property('status')
|
|
||||||
|
|
||||||
isRunning: (->
|
|
||||||
@get('status') == 'started' ||
|
|
||||||
@get('status') == 'queued' ||
|
|
||||||
@get('status') == 'booting' ||
|
|
||||||
@get('status') == 'received' ||
|
|
||||||
@get('status') == 'created'
|
|
||||||
).property('status')
|
|
||||||
|
|
||||||
isEmpty: (->
|
|
||||||
unless @get('status')
|
|
||||||
true
|
|
||||||
else
|
|
||||||
if @get('status') == ''
|
|
||||||
true
|
|
||||||
else
|
|
||||||
false
|
|
||||||
|
|
||||||
).property('status')
|
|
||||||
|
|
||||||
`export default StatusIconComponent`
|
|
|
@ -4,10 +4,10 @@ export default Ember.Component.extend({
|
||||||
tagName: 'span',
|
tagName: 'span',
|
||||||
classNames: ['status-icon', 'icon'],
|
classNames: ['status-icon', 'icon'],
|
||||||
classNameBindings: ['status'],
|
classNameBindings: ['status'],
|
||||||
attributeBindings: ['label:aria-label', 'label:title']
|
attributeBindings: ['label:aria-label', 'label:title'],
|
||||||
|
|
||||||
label: function() {
|
label: function() {
|
||||||
return 'Job ' + this.get('status')
|
return 'Job ' + this.get('status');
|
||||||
}.property('status'),
|
}.property('status'),
|
||||||
|
|
||||||
hasPassed: function() {
|
hasPassed: function() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user