presets select implemented
parent
3673460903
commit
638e228aa4
|
|
@ -28,7 +28,16 @@
|
||||||
</mat-button-toggle>
|
</mat-button-toggle>
|
||||||
</mat-button-toggle-group>
|
</mat-button-toggle-group>
|
||||||
</div>
|
</div>
|
||||||
|
<mat-form-field appearance="fill">
|
||||||
|
<mat-label>{{selectedPreset}}</mat-label>
|
||||||
|
<mat-select>
|
||||||
|
<mat-option *ngFor="let preset of presets" [value]="preset.id">
|
||||||
|
{{preset.name}}
|
||||||
|
</mat-option>
|
||||||
|
</mat-select>
|
||||||
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="filterContainer">
|
<div class="filterContainer">
|
||||||
<button mat-raised-button class="filterButton" aria-label="Filtern" (click)="openFilterDialog()">
|
<button mat-raised-button class="filterButton" aria-label="Filtern" (click)="openFilterDialog()">
|
||||||
{{languageService.lMap.get('nttGanttFilterButton')}} <mat-icon style="color: #00a79d;">filter_alt</mat-icon>
|
{{languageService.lMap.get('nttGanttFilterButton')}} <mat-icon style="color: #00a79d;">filter_alt</mat-icon>
|
||||||
|
|
|
||||||
|
|
@ -117,6 +117,9 @@ export class NttGanttComponent implements OnInit {
|
||||||
public planTimes : any[] = [];
|
public planTimes : any[] = [];
|
||||||
public sortSelectorName: any;
|
public sortSelectorName: any;
|
||||||
|
|
||||||
|
public presets : any[] = [];
|
||||||
|
public selectedPreset : {} = {};
|
||||||
|
|
||||||
/**###################################################################### Initial Loading functions ######################################################################*/
|
/**###################################################################### Initial Loading functions ######################################################################*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -148,6 +151,8 @@ export class NttGanttComponent implements OnInit {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log(currentPreset);
|
console.log(currentPreset);
|
||||||
|
this.presets = res.presets;
|
||||||
|
this.selectedPreset = currentPreset;
|
||||||
this.filters = JSON.parse(currentPreset.definition);
|
this.filters = JSON.parse(currentPreset.definition);
|
||||||
this.filterEnabled = true;
|
this.filterEnabled = true;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue