core: load user detail form in an inner SiteShell so update doesn't reload entire page

This commit is contained in:
Jens Langhammer
2020-12-13 00:11:08 +01:00
parent 7e8702a71e
commit 96f0d582f0
6 changed files with 50 additions and 26 deletions

View File

@ -63,6 +63,9 @@ export class SiteShell extends LitElement {
if (!this._url) {
return;
}
if (this.loading) {
return;
}
this.loading = true;
fetch(this._url)
.then((r) => {
@ -75,6 +78,7 @@ export class SiteShell extends LitElement {
level_tag: "error",
message: gettext(`Request failed: ${r.statusText}`),
});
this.loading = false;
throw new SentryIgnoredError("Request failed");
})
.then((r) => r.text())