diff --git a/frontend/src/app/ntt-gantt/ntt-gantt.component.html b/frontend/src/app/ntt-gantt/ntt-gantt.component.html index 47532dc..c621e70 100644 --- a/frontend/src/app/ntt-gantt/ntt-gantt.component.html +++ b/frontend/src/app/ntt-gantt/ntt-gantt.component.html @@ -77,7 +77,7 @@
diff --git a/frontend/src/app/ntt-gantt/ntt-gantt.component.ts b/frontend/src/app/ntt-gantt/ntt-gantt.component.ts index a7f6635..ce5afa6 100644 --- a/frontend/src/app/ntt-gantt/ntt-gantt.component.ts +++ b/frontend/src/app/ntt-gantt/ntt-gantt.component.ts @@ -96,6 +96,7 @@ export class NttGanttComponent implements OnInit { public blockedTaskIDs : number [] = [8]; public selectionSettings : object = {}; public spin: boolean = true; + public disableSpin: boolean = false; public sliceStart: number; public sliceEnd: number; @@ -462,6 +463,7 @@ export class NttGanttComponent implements OnInit { * This function is the most called Funktion in the whole project, it is triggered by a pageEvent, when a filter gets applied and much more... */ refreshData(){ + this.disableSpin = false; this.editUserPreferences(); this.showNoResultsError = false; this.renderGantt = false; @@ -469,6 +471,9 @@ export class NttGanttComponent implements OnInit { this.allResources = res; this.mapTasksToResources(this.sliceStart,this.sliceEnd); if(res.length > 0){ + if(res.length == 1){ + this.disableSpin = true; + } this.spin = true; this.renderGantt = true; this.showNoResultsError = false; @@ -1050,6 +1055,7 @@ export class NttGanttComponent implements OnInit { public created(args: any) { this.ganttDefault.hideSpinner(); this.ganttDefault.treeGrid.grid.hideSpinner(); + this.spin = false; } /**