Fixed waiting for responses in code for certain actions.

This commit is contained in:
Tom
2025-03-18 16:42:44 +00:00
parent d0556dce9c
commit 2f2215b041
3 changed files with 9 additions and 3 deletions

View File

@ -52,6 +52,7 @@ export class GroupItemEditComponent implements OnInit {
if (this.formGroup.invalid || this.waitForResponse)
return;
this.waitForResponse = true;
this._client.first((d: any) => d.op == 4 && d.d.request.type == 'create_group' && d.d.data.name == this.nameForm.value)
.subscribe({
next: (d) => this._dialogRef.close(d.d.data),