Don't display remove log button if it's already removed
This commit is contained in:
parent
aca82a0379
commit
09075e880d
|
@ -132,10 +132,8 @@ require 'travis/model'
|
||||||
).property('finishedAt')
|
).property('finishedAt')
|
||||||
|
|
||||||
canRemoveLog: (->
|
canRemoveLog: (->
|
||||||
# This should somehow get the status of removed log, but unfortunately there is
|
!@get('log.removed')
|
||||||
# no easy way to do that at the moment
|
).property('log.removed')
|
||||||
true
|
|
||||||
).property()
|
|
||||||
|
|
||||||
slug: (->
|
slug: (->
|
||||||
"#{@get('repo.slug')} ##{@get('number')}"
|
"#{@get('repo.slug')} ##{@get('number')}"
|
||||||
|
|
|
@ -39,7 +39,10 @@ require 'travis/log_chunks'
|
||||||
console.log 'log model: fetching log' if Log.DEBUG
|
console.log 'log model: fetching log' if Log.DEBUG
|
||||||
@clearParts()
|
@clearParts()
|
||||||
handlers =
|
handlers =
|
||||||
json: (json) => @loadParts(json['log']['parts'])
|
json: (json) =>
|
||||||
|
if json['log']['removed_at']
|
||||||
|
@set('removed', true)
|
||||||
|
@loadParts(json['log']['parts'])
|
||||||
text: (text) => @loadText(text)
|
text: (text) => @loadText(text)
|
||||||
Travis.Log.Request.create(id: id, handlers: handlers).run() if id = @get('job.id')
|
Travis.Log.Request.create(id: id, handlers: handlers).run() if id = @get('job.id')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user