spinner fix
parent
5aac820830
commit
44183a7985
|
|
@ -77,7 +77,7 @@
|
||||||
|
|
||||||
|
|
||||||
<div
|
<div
|
||||||
*ngIf="!this.showNoResultsError && !this.errorService.critical && !this.errorService.rsso && !this.errorService.error" id="showSpin" data-bind="visible: spin"
|
*ngIf="!this.disableSpin && !this.showNoResultsError && !this.errorService.critical && !this.errorService.rsso && !this.errorService.error" id="showSpin" data-bind="visible: spin"
|
||||||
style=" position: absolute; top: auto; left: 30%;">
|
style=" position: absolute; top: auto; left: 30%;">
|
||||||
<img src="https://upload.wikimedia.org/wikipedia/commons/b/b1/Loading_icon.gif" rel="stylesheet"/>
|
<img src="https://upload.wikimedia.org/wikipedia/commons/b/b1/Loading_icon.gif" rel="stylesheet"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -96,6 +96,7 @@ export class NttGanttComponent implements OnInit {
|
||||||
public blockedTaskIDs : number [] = [8];
|
public blockedTaskIDs : number [] = [8];
|
||||||
public selectionSettings : object = {};
|
public selectionSettings : object = {};
|
||||||
public spin: boolean = true;
|
public spin: boolean = true;
|
||||||
|
public disableSpin: boolean = false;
|
||||||
public sliceStart: number;
|
public sliceStart: number;
|
||||||
public sliceEnd: 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...
|
* 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(){
|
refreshData(){
|
||||||
|
this.disableSpin = false;
|
||||||
this.editUserPreferences();
|
this.editUserPreferences();
|
||||||
this.showNoResultsError = false;
|
this.showNoResultsError = false;
|
||||||
this.renderGantt = false;
|
this.renderGantt = false;
|
||||||
|
|
@ -469,6 +471,9 @@ export class NttGanttComponent implements OnInit {
|
||||||
this.allResources = res;
|
this.allResources = res;
|
||||||
this.mapTasksToResources(this.sliceStart,this.sliceEnd);
|
this.mapTasksToResources(this.sliceStart,this.sliceEnd);
|
||||||
if(res.length > 0){
|
if(res.length > 0){
|
||||||
|
if(res.length == 1){
|
||||||
|
this.disableSpin = true;
|
||||||
|
}
|
||||||
this.spin = true;
|
this.spin = true;
|
||||||
this.renderGantt = true;
|
this.renderGantt = true;
|
||||||
this.showNoResultsError = false;
|
this.showNoResultsError = false;
|
||||||
|
|
@ -1050,6 +1055,7 @@ export class NttGanttComponent implements OnInit {
|
||||||
public created(args: any) {
|
public created(args: any) {
|
||||||
this.ganttDefault.hideSpinner();
|
this.ganttDefault.hideSpinner();
|
||||||
this.ganttDefault.treeGrid.grid.hideSpinner();
|
this.ganttDefault.treeGrid.grid.hideSpinner();
|
||||||
|
this.spin = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue