web/admin: run explicit update after loading instance
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
7257108091
commit
2c9b596f01
|
@ -51,7 +51,7 @@ class OAuthCallback(OAuthClientMixin, View):
|
||||||
except JSONDecodeError as exc:
|
except JSONDecodeError as exc:
|
||||||
Event.new(
|
Event.new(
|
||||||
EventAction.CONFIGURATION_ERROR,
|
EventAction.CONFIGURATION_ERROR,
|
||||||
message=f"Failed to JSON-decode profile.",
|
message="Failed to JSON-decode profile.",
|
||||||
raw_profile=exc.doc,
|
raw_profile=exc.doc,
|
||||||
).from_http(self.request)
|
).from_http(self.request)
|
||||||
return self.handle_login_failure("Could not retrieve profile.")
|
return self.handle_login_failure("Could not retrieve profile.")
|
||||||
|
|
|
@ -12,6 +12,7 @@ export abstract class ModelForm<T, PKT extends string | number> extends Form<T>
|
||||||
if (this.isInViewport) {
|
if (this.isInViewport) {
|
||||||
this.loadInstance(value).then(instance => {
|
this.loadInstance(value).then(instance => {
|
||||||
this.instance = instance;
|
this.instance = instance;
|
||||||
|
this.requestUpdate();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue