web/admin: fix group member table order

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-04-17 19:36:55 +02:00
parent 0021a93952
commit 78dd7b0341
2 changed files with 2 additions and 1 deletions

View file

@ -60,7 +60,6 @@ export class GroupForm extends Form<Group> {
</ak-form-element-horizontal>
<ak-form-element-horizontal
label=${t`Parent`}
?required=${true}
name="parent">
<select class="pf-c-form-control">
<option value="" ?selected=${this.group?.parent === undefined}>---------</option>

View file

@ -21,6 +21,8 @@ export class MemberSelectTable extends TableModal<User> {
@property()
confirm!: (selectedItems: User[]) => Promise<unknown>;
order = "username";
apiEndpoint(page: number): Promise<AKResponse<User>> {
return new CoreApi(DEFAULT_CONFIG).coreUsersList({
ordering: this.order,