diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-09-25 12:39:16 +0100 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2017-09-25 12:39:16 +0100 |
commit | 9c7807b319a845a43e75a5ef7edb100676e9d525 (patch) | |
tree | 61012b4427f3eb4bc0a3c7244180bcb00f7edbe4 /app | |
parent | 84c4834fb430e78e605519b53bd9aff25cb6426a (diff) | |
download | gitlab-ce-9c7807b319a845a43e75a5ef7edb100676e9d525.tar.gz |
Improves toggle method
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/registry/components/collapsible_container.vue | 4 |
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() { |