Fix removing caches for entier repository
It seems that sometimes repository_id is not present on cache object. I'll investigate that later, but we have a repo object on the caches controller anyway, so I'll just use it instead.
This commit is contained in:
parent
60bd9e6a26
commit
9609daab3b
|
@ -17,7 +17,7 @@ Controller = Ember.Controller.extend
|
|||
deletingDone = => @set('isDeleting', false)
|
||||
|
||||
repo = @get('repo')
|
||||
Ajax.ajax("/repos/#{@get('cache.repository_id')}/caches", "DELETE").then(deletingDone, deletingDone).then =>
|
||||
Ajax.ajax("/repos/#{@get('repo.repository_id')}/caches", "DELETE").then(deletingDone, deletingDone).then =>
|
||||
@set('model', {})
|
||||
|
||||
`export default Controller`
|
||||
|
|
Loading…
Reference in New Issue
Block a user