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

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

Issue 2990713002: config_service: change error message for error 403. (Closed)
Patch Set: Nit: change tests for config-set page. 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
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 30bd83de4890e02e21fe5fae9ed1af5be80d2c62..409170e640947213c2710c35774abf9bb3fac128 100644
--- a/appengine/config_service/ui/src/config-ui/front-page.html
+++ b/appengine/config_service/ui/src/config-ui/front-page.html
@@ -133,14 +133,29 @@
searchResults: {
type: Array,
value: () => []
+ },
+
+ signed_in: {
+ type: Boolean,
+ observer: '_onSignIn'
}
},
ready: function() {
- document.addEventListener('fetch-configs', function() {
+ if (!this.initialized) {
+ document.addEventListener('fetch-configs', function() {
+ this.$.requestConfigs.generateRequest();
+ }.bind(this));
+ } else {
+ this.$.requestConfigs.generateRequest();
+ }
+ },
+
+ _onSignIn: function() {
+ if (this.signed_in) {
this.isLoading = true;
this.$.requestConfigs.generateRequest();
- }.bind(this));
+ }
},
_formatName: function(name) {

Powered by Google App Engine
This is Rietveld 408576698