make isGHPages a proper property
This commit is contained in:
parent
dbd124852d
commit
5bf4e4ffe4
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user