diff options
Diffstat (limited to 'client/src/app/shared')
3 files changed, 4 insertions, 3 deletions
diff --git a/client/src/app/shared/shared-abuse-list/moderation-comment-modal.component.ts b/client/src/app/shared/shared-abuse-list/moderation-comment-modal.component.ts index ccb0c5262..2600da8da 100644 --- a/client/src/app/shared/shared-abuse-list/moderation-comment-modal.component.ts +++ b/client/src/app/shared/shared-abuse-list/moderation-comment-modal.component.ts | |||
@@ -49,7 +49,7 @@ export class ModerationCommentModalComponent extends FormReactive implements OnI | |||
49 | this.form.reset() | 49 | this.form.reset() |
50 | } | 50 | } |
51 | 51 | ||
52 | async banUser () { | 52 | banUser () { |
53 | const moderationComment: string = this.form.value['moderationComment'] | 53 | const moderationComment: string = this.form.value['moderationComment'] |
54 | 54 | ||
55 | this.abuseService.updateAbuse(this.abuseToComment, { moderationComment }) | 55 | this.abuseService.updateAbuse(this.abuseToComment, { moderationComment }) |
diff --git a/client/src/app/shared/shared-main/misc/top-menu-dropdown.component.ts b/client/src/app/shared/shared-main/misc/top-menu-dropdown.component.ts index e7e34ce1e..a8cc9b593 100644 --- a/client/src/app/shared/shared-main/misc/top-menu-dropdown.component.ts +++ b/client/src/app/shared/shared-main/misc/top-menu-dropdown.component.ts | |||
@@ -84,8 +84,9 @@ export class TopMenuDropdownComponent implements OnInit, OnDestroy { | |||
84 | 84 | ||
85 | this.modalService.open(this.modal, { | 85 | this.modalService.open(this.modal, { |
86 | centered: true, | 86 | centered: true, |
87 | beforeDismiss: async () => { | 87 | beforeDismiss: () => { |
88 | this.onModalDismiss() | 88 | this.onModalDismiss() |
89 | |||
89 | return true | 90 | return true |
90 | } | 91 | } |
91 | }) | 92 | }) |
diff --git a/client/src/app/shared/shared-moderation/user-ban-modal.component.ts b/client/src/app/shared/shared-moderation/user-ban-modal.component.ts index 0a2d5e93a..a03bd7286 100644 --- a/client/src/app/shared/shared-moderation/user-ban-modal.component.ts +++ b/client/src/app/shared/shared-moderation/user-ban-modal.component.ts | |||
@@ -43,7 +43,7 @@ export class UserBanModalComponent extends FormReactive implements OnInit { | |||
43 | this.openedModal.close() | 43 | this.openedModal.close() |
44 | } | 44 | } |
45 | 45 | ||
46 | async banUser () { | 46 | banUser () { |
47 | const reason = this.form.value['reason'] || undefined | 47 | const reason = this.form.value['reason'] || undefined |
48 | 48 | ||
49 | this.userService.banUsers(this.usersToBan, reason) | 49 | this.userService.banUsers(this.usersToBan, reason) |