| 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) {
|
|
|