From 4edd1feaad34aebeab2b7eca9e6f71b983fd97fd Mon Sep 17 00:00:00 2001 From: Lisa P Date: Tue, 5 Jan 2016 12:57:04 +0100 Subject: [PATCH] remove coffee file --- app/components/status-icon.coffee | 49 ------------------------------- app/components/status-icon.js | 4 +-- 2 files changed, 2 insertions(+), 51 deletions(-) delete mode 100644 app/components/status-icon.coffee diff --git a/app/components/status-icon.coffee b/app/components/status-icon.coffee deleted file mode 100644 index 11e43d25..00000000 --- a/app/components/status-icon.coffee +++ /dev/null @@ -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` diff --git a/app/components/status-icon.js b/app/components/status-icon.js index ea01d9d6..846c51c7 100644 --- a/app/components/status-icon.js +++ b/app/components/status-icon.js @@ -4,10 +4,10 @@ export default Ember.Component.extend({ tagName: 'span', classNames: ['status-icon', 'icon'], classNameBindings: ['status'], - attributeBindings: ['label:aria-label', 'label:title'] + attributeBindings: ['label:aria-label', 'label:title'], label: function() { - return 'Job ' + this.get('status') + return 'Job ' + this.get('status'); }.property('status'), hasPassed: function() {