make isGHPages a proper property

This commit is contained in:
Lisa P 2016-01-05 15:01:38 +01:00
parent dbd124852d
commit 5bf4e4ffe4

View File

@ -6,6 +6,15 @@ export default Ember.Component.extend({
classNameBindings: ['requestClass'],
tagName: 'li',
isGHPages: function() {
var message = this.get('request.message');
if (message === 'github pages branch') {
return true;
} else {
return false;
}
}.property('request.message'),
requestClass: function() {
if (this.get('request.isAccepted')) {
return 'accepted';
@ -37,10 +46,6 @@ export default Ember.Component.extend({
message: function() {
var message;
message = this.get('request.message');
if (message === 'github pages branch') {
this.set('isGHPages', true);
}
if (config.pro && message === "private repository") {
return '';
} else if (!message) {