From dce6119de063f6791f43ff41e8e0f39f7d4bd707 Mon Sep 17 00:00:00 2001 From: Filipa Lacerda Date: Tue, 26 Sep 2017 12:05:12 +0100 Subject: [PATCH] Fixes destroy endpoint --- app/assets/javascripts/registry/stores/actions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/registry/stores/actions.js b/app/assets/javascripts/registry/stores/actions.js index d980e98e7b1..34ed40b8b65 100644 --- a/app/assets/javascripts/registry/stores/actions.js +++ b/app/assets/javascripts/registry/stores/actions.js @@ -29,10 +29,10 @@ export const fetchList = ({ commit }, { repo, page }) => { }); }; -export const deleteRepo = ({ commit }, repo) => Vue.http.delete(repo.path) +export const deleteRepo = ({ commit }, repo) => Vue.http.delete(repo.destroyPath) .then(res => res.json()); -export const deleteRegistry = ({ commit }, image) => Vue.http.delete(image.path) +export const deleteRegistry = ({ commit }, image) => Vue.http.delete(image.destroyPath) .then(res => res.json()); export const setMainEndpoint = ({ commit }, data) => commit(types.SET_MAIN_ENDPOINT, data);