#133 added Level Table #223

Merged
edraft merged 3 commits from #133 into 1.0.0 2023-02-21 09:56:24 +01:00
Showing only changes of commit 2fd7358d26 - Show all commits

View File

@ -19,6 +19,7 @@ import { Mutations } from "../../../../models/graphql/mutations.model";
import { throwError } from "rxjs";
import { UpdateUserMutationResult } from "../../../../models/graphql/result.model";
import { ActivatedRoute } from "@angular/router";
import { Level } from "../../../../models/data/level.model";
@Component({
selector: "app-members",
@ -65,7 +66,7 @@ export class MembersComponent implements OnInit {
discordId: FormControl<number | null>,
name: FormControl<string | null>,
leftServer: FormControl<boolean | null>,
level: FormControl<number | null>
level: FormControl<Level | null>
}>;
filter: UserFilter = {};
@ -132,7 +133,7 @@ export class MembersComponent implements OnInit {
discordId: new FormControl<number | null>(null),
name: [""],
leftServer: new FormControl<boolean | null>(null),
level: new FormControl<number | null>(null)
level: new FormControl<Level | null>(null)
});
this.filterForm.valueChanges.pipe(
@ -164,7 +165,7 @@ export class MembersComponent implements OnInit {
if (changes.level) {
this.filter.level = {
id: changes.level
id: changes.level.id
};
} else {
this.filter.level = undefined;