summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2017-09-25 12:39:16 +0100
committerFilipa Lacerda <filipa@gitlab.com>2017-09-25 12:39:16 +0100
commit9c7807b319a845a43e75a5ef7edb100676e9d525 (patch)
tree61012b4427f3eb4bc0a3c7244180bcb00f7edbe4
parent84c4834fb430e78e605519b53bd9aff25cb6426a (diff)
downloadgitlab-ce-9c7807b319a845a43e75a5ef7edb100676e9d525.tar.gz
Improves toggle method
-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() {