Skip to content

Commit 745c8fe

Browse files
committed
fix(admin): user ban tabs correct order
* the order of ban tabs is correctly assumend
1 parent 630e79b commit 745c8fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/admin-gui/src/app/users/pages/user-detail-page/user-bans/user-bans.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export class UserBansComponent implements OnInit {
4949
ngOnInit(): void {
5050
this.loading = true;
5151
this.user = this.entityService.getEntity();
52-
this.refreshResourceBans();
52+
this.refreshVoBans();
5353
}
5454

5555
refreshVoBans(): void {
@@ -117,9 +117,9 @@ export class UserBansComponent implements OnInit {
117117
}
118118

119119
refresh(change: MatTabChangeEvent): void {
120-
if (change.index === -1) {
120+
if (change.index === 0) {
121121
this.refreshVoBans();
122-
} else if (change.index === 0) {
122+
} else if (change.index === 1) {
123123
this.refreshResourceBans();
124124
} else {
125125
this.refreshFacilityBans();

0 commit comments

Comments
 (0)