diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-05-18 10:56:29 +0100 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2017-05-18 10:56:29 +0100 |
commit | 0f465b247883e932e1759fd066e46864d6834741 (patch) | |
tree | 1917a0228121ad8ca7113fc13f33e4563e40d7a7 | |
parent | 41bedd9cb7b24a8bc1a82d3bfaff5e10b49e0f6e (diff) | |
download | gitlab-ce-0f465b247883e932e1759fd066e46864d6834741.tar.gz |
Guarantees first request is made even when the tab is not visible
-rw-r--r-- | app/assets/javascripts/environments/components/environment.vue | 2 | ||||
-rw-r--r-- | app/assets/javascripts/environments/folder/environments_folder_view.vue | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/app/assets/javascripts/environments/components/environment.vue b/app/assets/javascripts/environments/components/environment.vue index 86d8fe89010..9cd73d1f718 100644 --- a/app/assets/javascripts/environments/components/environment.vue +++ b/app/assets/javascripts/environments/components/environment.vue @@ -95,6 +95,8 @@ export default { if (!Visibility.hidden()) { this.isLoading = true; poll.makeRequest(); + } else { + this.fetchEnvironments(); } Visibility.change(() => { diff --git a/app/assets/javascripts/environments/folder/environments_folder_view.vue b/app/assets/javascripts/environments/folder/environments_folder_view.vue index 925503a01c4..1778bdae99f 100644 --- a/app/assets/javascripts/environments/folder/environments_folder_view.vue +++ b/app/assets/javascripts/environments/folder/environments_folder_view.vue @@ -101,6 +101,8 @@ export default { if (!Visibility.hidden()) { this.isLoading = true; poll.makeRequest(); + } else { + this.fetchEnvironments(); } Visibility.change(() => { |