travis-web/app/components/repo-actions.js
2016-01-04 13:15:14 +01:00

16 lines
356 B
JavaScript

import Ember from 'ember';
export default Ember.Component.extend({
displayCodeClimate: function() {
return this.get('repo.githubLanguage') === 'Ruby';
}.property('repo.githubLanguage'),
actions: {
codeClimatePopup() {
$('.popup').removeClass('display');
$('#code-climate').addClass('display');
return false;
}
}
});