Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8934)

Unified Diff: appengine/config_service/ui/src/config-ui/front-page.html

Issue 2980973002: config_service: Fixed multiple ajax requests in the front page while the page determines whether a … (Closed)
Patch Set: Cleaned up unnecessary code Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « appengine/config_service/ui/src/config-ui/config-ui.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/config_service/ui/src/config-ui/front-page.html
diff --git a/appengine/config_service/ui/src/config-ui/front-page.html b/appengine/config_service/ui/src/config-ui/front-page.html
index 4caa89b1af57d748cb25f35a502ed876edb02e00..f8ca57546e536347e4b0255a363b0423c1223ab9 100644
--- a/appengine/config_service/ui/src/config-ui/front-page.html
+++ b/appengine/config_service/ui/src/config-ui/front-page.html
@@ -54,7 +54,6 @@
</style>
<iron-ajax
- auto
id="requestConfigs"
url="/_ah/api/config/v1/config-sets?include_last_import_attempt=true"
handle-as="json"
@@ -117,6 +116,13 @@
}
},
+ ready: function() {
+ document.addEventListener('fetch-configs', function() {
+ this.isLoading = true;
+ this.$.requestConfigs.generateRequest();
+ }.bind(this));
+ },
+
_formatName: function(name) {
var tempName = name.substring(name.indexOf("/") + 1);
return tempName.includes("/") ?
« no previous file with comments | « appengine/config_service/ui/src/config-ui/config-ui.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698