web: pass 2 migration

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-05-16 17:53:59 +02:00
parent 1f05484e3c
commit dde1dabf97
29 changed files with 32 additions and 32 deletions

View File

@ -94,7 +94,7 @@ export class UserListPage extends TablePage<User> {
.delete=${() => {
return new CoreApi(DEFAULT_CONFIG).coreUsersPartialUpdate({
id: item.pk || 0,
data: {
patchedUserRequest: {
username: item.username,
name: item.name,
isActive: !item.isActive,
@ -112,7 +112,7 @@ export class UserListPage extends TablePage<User> {
.obj=${item}
objectLabel=${t`User`}
.delete=${() => {
return new CoreApi(DEFAULT_CONFIG).coreUsersDelete({
return new CoreApi(DEFAULT_CONFIG).coreUsersDestroy({
id: item.pk || 0
});
}}>
@ -125,7 +125,7 @@ export class UserListPage extends TablePage<User> {
</ak-dropdown>
<ak-action-button
.apiRequest=${() => {
return new CoreApi(DEFAULT_CONFIG).coreUsersRecovery({
return new CoreApi(DEFAULT_CONFIG).coreUsersRecoveryRetrieve({
id: item.pk || 0,
}).then(rec => {
showMessage({