summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/registry/components/app.vue
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2018-12-05 09:27:29 +0000
committerFilipa Lacerda <filipa@gitlab.com>2018-12-07 12:46:12 +0000
commitf8bfc2cf7c2f6489e2f70a554a10785859f22765 (patch)
tree92294242d60bbe94bd8b361118e9b73180efb828 /app/assets/javascripts/registry/components/app.vue
parent7019b646c5a4a588b4018bdb8b8afdfd81a2ae60 (diff)
downloadgitlab-ce-f8bfc2cf7c2f6489e2f70a554a10785859f22765.tar.gz
Reduces technical debt
Updates icons to use gitlab-svg Updates buttons to use gitlab-ui Updates broken tests
Diffstat (limited to 'app/assets/javascripts/registry/components/app.vue')
-rw-r--r--app/assets/javascripts/registry/components/app.vue6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/registry/components/app.vue b/app/assets/javascripts/registry/components/app.vue
index ab568da1fcb..021204da2cc 100644
--- a/app/assets/javascripts/registry/components/app.vue
+++ b/app/assets/javascripts/registry/components/app.vue
@@ -26,7 +26,7 @@ export default {
this.setMainEndpoint(this.endpoint);
},
mounted() {
- this.fetchRepos().catch(() => createFlash(errorMessages[errorMessagesTypes.FETCH_REPOS]));
+ this.fetchRepos();
},
methods: {
...mapActions(['setMainEndpoint', 'fetchRepos']),
@@ -38,9 +38,9 @@ export default {
<gl-loading-icon v-if="isLoading" :size="3" />
<collapsible-container
- v-for="(item, index) in repos"
+ v-for="item in repos"
v-else-if="!isLoading && repos.length"
- :key="index"
+ :key="item.id"
:repo="item"
/>