summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPrzemyslaw Waliszewski <pwaliszewski@gmail.com>2021-05-27 12:58:11 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2021-05-27 12:58:11 +0000
commit2151203b26508f972ab751ac6cf589748c6570e1 (patch)
tree814acb7d11e3bcf1066a2ed0de9bbc7a288931c5
parent93628061d137720470e1df8cf768d5ac3bfcaef6 (diff)
parent9942ad72d7330720c4ba7b54218d098a7cdbecb2 (diff)
Merge "Fix empty Registered field on settings screen" into stable-3.2
-rw-r--r--polygerrit-ui/app/elements/settings/gr-account-info/gr-account-info.js2
-rw-r--r--polygerrit-ui/app/elements/shared/gr-rest-api-interface/gr-rest-api-interface.js4
2 files changed, 6 insertions, 0 deletions
diff --git a/polygerrit-ui/app/elements/settings/gr-account-info/gr-account-info.js b/polygerrit-ui/app/elements/settings/gr-account-info/gr-account-info.js
index 7e312d32e6..b1b5ba790e 100644
--- a/polygerrit-ui/app/elements/settings/gr-account-info/gr-account-info.js
+++ b/polygerrit-ui/app/elements/settings/gr-account-info/gr-account-info.js
@@ -102,6 +102,8 @@ class GrAccountInfo extends GestureEventListeners(
this._serverConfig = config;
}));
+ promises.push(this.$.restAPI.invalidateAccountsDetailCache());
+
promises.push(this.$.restAPI.getAccount().then(account => {
this._hasNameChange = false;
this._hasUsernameChange = false;
diff --git a/polygerrit-ui/app/elements/shared/gr-rest-api-interface/gr-rest-api-interface.js b/polygerrit-ui/app/elements/shared/gr-rest-api-interface/gr-rest-api-interface.js
index b675df71a0..72c805855c 100644
--- a/polygerrit-ui/app/elements/shared/gr-rest-api-interface/gr-rest-api-interface.js
+++ b/polygerrit-ui/app/elements/shared/gr-rest-api-interface/gr-rest-api-interface.js
@@ -1349,6 +1349,10 @@ class GrRestApiInterface extends mixinBehaviors( [
this._restApiHelper.invalidateFetchPromisesPrefix('/accounts/');
}
+ invalidateAccountsDetailCache() {
+ this._restApiHelper.invalidateFetchPromisesPrefix('/accounts/self/detail');
+ }
+
/**
* @param {string} filter
* @param {number} groupsPerPage