summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/registry/components/collapsible_container.vue
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/registry/components/collapsible_container.vue')
-rw-r--r--app/assets/javascripts/registry/components/collapsible_container.vue4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/assets/javascripts/registry/components/collapsible_container.vue b/app/assets/javascripts/registry/components/collapsible_container.vue
index 7c341b0e91b..170070ff92c 100644
--- a/app/assets/javascripts/registry/components/collapsible_container.vue
+++ b/app/assets/javascripts/registry/components/collapsible_container.vue
@@ -1,6 +1,7 @@
<script>
+ /* globals Flash */
import { mapActions } from 'vuex';
- import { n__, s__ } from '../../locale';
+ import '../../flash';
import clipboardButton from '../../vue_shared/components/clipboard_button.vue';
import loadingIcon from '../../vue_shared/components/loading_icon.vue';
import tooltip from '../../vue_shared/directives/tooltip';
@@ -37,6 +38,7 @@
toggleRepo() {
this.isOpen = !this.isOpen;
+
if (this.isOpen) {
this.fetchList({ repo: this.repo })
.catch(() => this.showError(errorMessagesTypes.FETCH_REGISTRY));