summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/registry
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/registry')
-rw-r--r--app/assets/javascripts/registry/components/collapsible_container.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/registry/components/collapsible_container.vue b/app/assets/javascripts/registry/components/collapsible_container.vue
index ff69563a362..c29f98c6841 100644
--- a/app/assets/javascripts/registry/components/collapsible_container.vue
+++ b/app/assets/javascripts/registry/components/collapsible_container.vue
@@ -51,11 +51,11 @@
},
toggleRepo() {
- if (this.isOpen === false) {
+ this.isOpen = !this.isOpen;
+ if (this.isOpen) {
this.fetchList({ repo: this.repo })
.catch(() => this.showError(errorMessagesTypes.FETCH_REGISTRY));
}
- this.isOpen = !this.isOpen;
},
handleDeleteRepository() {