Commit 0f465b24 authored by Filipa Lacerda's avatar Filipa Lacerda

Guarantees first request is made even when the tab is not visible

parent 41bedd9c
...@@ -95,6 +95,8 @@ export default { ...@@ -95,6 +95,8 @@ export default {
if (!Visibility.hidden()) { if (!Visibility.hidden()) {
this.isLoading = true; this.isLoading = true;
poll.makeRequest(); poll.makeRequest();
} else {
this.fetchEnvironments();
} }
Visibility.change(() => { Visibility.change(() => {
......
...@@ -101,6 +101,8 @@ export default { ...@@ -101,6 +101,8 @@ export default {
if (!Visibility.hidden()) { if (!Visibility.hidden()) {
this.isLoading = true; this.isLoading = true;
poll.makeRequest(); poll.makeRequest();
} else {
this.fetchEnvironments();
} }
Visibility.change(() => { Visibility.change(() => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment