summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2017-05-18 10:56:29 +0100
committerFilipa Lacerda <filipa@gitlab.com>2017-05-18 10:56:29 +0100
commit0f465b247883e932e1759fd066e46864d6834741 (patch)
tree1917a0228121ad8ca7113fc13f33e4563e40d7a7
parent41bedd9cb7b24a8bc1a82d3bfaff5e10b49e0f6e (diff)
downloadgitlab-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.vue2
-rw-r--r--app/assets/javascripts/environments/folder/environments_folder_view.vue2
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(() => {