web: Read() to Retrieve()

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-05-16 14:43:42 +02:00
parent cac1f242dc
commit 3ab7588b73
67 changed files with 140 additions and 353 deletions

View File

@ -14,7 +14,7 @@ import { ModelForm } from "../../elements/forms/ModelForm";
export class UserForm extends ModelForm<User, number> {
loadInstance(pk: number): Promise<User> {
return new CoreApi(DEFAULT_CONFIG).coreUsersRead({
return new CoreApi(DEFAULT_CONFIG).coreUsersRetrieve({
id: pk
});
}

View File

@ -38,7 +38,7 @@ export class UserViewPage extends LitElement {
@property({ type: Number })
set userId(id: number) {
new CoreApi(DEFAULT_CONFIG).coreUsersRead({
new CoreApi(DEFAULT_CONFIG).coreUsersRetrieve({
id: id,
}).then((user) => {
this.user = user;