From 4c8a3fc4c8c2efc2fd97f33145a9f9d7b1dd9520 Mon Sep 17 00:00:00 2001
From: gluafamichl <>
Date: Mon, 13 Oct 2025 09:10:21 +0200
Subject: [PATCH 1/3] Fix: duplicate page loading Fix: only reload agent table
and agent assignment input when agent assigment changes
---
.../tasks/edit-tasks/edit-tasks.component.ts | 21 +++++++------------
1 file changed, 8 insertions(+), 13 deletions(-)
diff --git a/src/app/tasks/edit-tasks/edit-tasks.component.ts b/src/app/tasks/edit-tasks/edit-tasks.component.ts
index 924a4548..b0785e74 100644
--- a/src/app/tasks/edit-tasks/edit-tasks.component.ts
+++ b/src/app/tasks/edit-tasks/edit-tasks.component.ts
@@ -80,33 +80,28 @@ export class EditTasksComponent implements OnInit, OnDestroy {
private confirmDialog: ConfirmDialogService
) {
this.titleService.set(['Edit Task']);
- this.onInitialize();
}
ngOnInit() {
- this.buildForm();
- this.initForm();
- this.assignChunksInit();
- }
-
- ngOnDestroy(): void {
- this.routeSub?.unsubscribe();
- }
-
- onInitialize() {
this.route.params.subscribe((params: Params) => {
this.editedTaskIndex = +params['id'];
this.editMode = params['id'] != null;
- this.ngOnInit();
+ this.buildForm();
+ this.initForm();
+ this.assignChunksInit();
});
}
+ ngOnDestroy(): void {
+ this.routeSub?.unsubscribe();
+ }
+
/**
* Reload data
*/
refresh(): void {
- this.onInitialize();
+ this.assingAgentInit();
this.agentsTable.reload();
}
From 34bb7310c0d0a669df32dc904d54d7cfa238674d Mon Sep 17 00:00:00 2001
From: gluafamichl <>
Date: Mon, 13 Oct 2025 09:40:28 +0200
Subject: [PATCH 2/3] Fix: duplicate agent reload
---
.../edit-tasks/edit-tasks.component.html | 4 +-
.../tasks/edit-tasks/edit-tasks.component.ts | 51 +++++++++----------
2 files changed, 26 insertions(+), 29 deletions(-)
diff --git a/src/app/tasks/edit-tasks/edit-tasks.component.html b/src/app/tasks/edit-tasks/edit-tasks.component.html
index c35d4f81..d1d3e631 100644
--- a/src/app/tasks/edit-tasks/edit-tasks.component.html
+++ b/src/app/tasks/edit-tasks/edit-tasks.component.html
@@ -158,13 +158,13 @@
Description
-