summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2017-09-26 12:05:12 +0100
committerFilipa Lacerda <filipa@gitlab.com>2017-09-26 12:05:12 +0100
commitdce6119de063f6791f43ff41e8e0f39f7d4bd707 (patch)
treeda01512783cf16cceb614657d6bb6bbc0ff3d825
parentc34a47c39a687b2284f43fdf827d6fd2bf90e11d (diff)
downloadgitlab-ce-dce6119de063f6791f43ff41e8e0f39f7d4bd707.tar.gz
Fixes destroy endpoint
-rw-r--r--app/assets/javascripts/registry/stores/actions.js4
1 files 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);