From 9609daab3ba72147e7194f154a4e97e339954d87 Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Wed, 22 Apr 2015 18:45:10 +0200 Subject: [PATCH] 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. --- app/controllers/caches.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/caches.coffee b/app/controllers/caches.coffee index 4a266cc6..11903b12 100644 --- a/app/controllers/caches.coffee +++ b/app/controllers/caches.coffee @@ -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`