layout design

main
manueltauber 2023-08-08 10:53:25 +02:00
parent 33ac17dab8
commit e4b6cd3a8d
4 changed files with 6 additions and 5 deletions

View File

@ -143,9 +143,9 @@
</mat-form-field> </mat-form-field>
<br><br> --> <br><br> -->
<br> <br>
<div class="buttonBox"> <mat-dialog-actions align="end">
<button mat-raised-button style="margin-right: 3px;" matDialogClose>{{this.languageService.lMap.get('filterDialogCancel')}}</button> <button mat-raised-button style="margin-right: 3px;" matDialogClose>{{this.languageService.lMap.get('filterDialogCancel')}}</button>
<button mat-raised-button color = "primary" style="margin-left: 3px;" (click)="mapFilter()">{{this.languageService.lMap.get('filterDilogButton')}}</button> <button mat-raised-button color = "primary" style="margin-left: 3px;" (click)="mapFilter()">{{this.languageService.lMap.get('filterDilogButton')}}</button>
</div> </mat-dialog-actions>
</div> </div>
</div> </div>

View File

@ -305,7 +305,7 @@ export class NttGanttComponent implements OnInit {
openFilterDialog(){ openFilterDialog(){
let dialogRef = FilterDialogComponent; let dialogRef = FilterDialogComponent;
this.matDialog.open(dialogRef, this.matDialog.open(dialogRef,
{data : [], height: '70%', width: '50%'}).afterClosed().subscribe((res)=>{ {data : [], width: '50%'}).afterClosed().subscribe((res)=>{
if(res){ if(res){
this.filters = res; this.filters = res;
this.filterEnabled = true; this.filterEnabled = true;

View File

@ -14,3 +14,4 @@
<button [disabled]="diasbled" mat-raised-button matDialogClose>{{this.languageService.lMap.get('stateDialogCancel')}}</button> <button [disabled]="diasbled" mat-raised-button matDialogClose>{{this.languageService.lMap.get('stateDialogCancel')}}</button>
<button [disabled]="bdiasbled" mat-raised-button color="primary" (click)="updateState()">{{this.languageService.lMap.get('stateDialogConfirm')}}</button> <button [disabled]="bdiasbled" mat-raised-button color="primary" (click)="updateState()">{{this.languageService.lMap.get('stateDialogConfirm')}}</button>
</mat-dialog-actions> </mat-dialog-actions>

View File

@ -96,7 +96,7 @@ export class StateDialogComponent implements OnInit {
this.progress = (counter/this.data.changes.length)*100; this.progress = (counter/this.data.changes.length)*100;
} }
if(res.status == 500){ if(res.status == 500){
this._snackBar.open(this.languageService.lMap.get('stateDialogSnackBarMessageFailiure') + res.error.message, this.languageService.lMap.get('stateDialogSnackBarActionFailiure'), { this._snackBar.open(this.languageService.lMap.get('stateDialogSnackBarMessageFailiure') + ': ' + res.error.message + ' ChangeNr: '+change.changeNr, this.languageService.lMap.get('stateDialogSnackBarActionFailiure'), {
horizontalPosition: this.horizontalPosition, horizontalPosition: this.horizontalPosition,
verticalPosition: this.verticalPosition, verticalPosition: this.verticalPosition,
panelClass: ['red-snackbar'], panelClass: ['red-snackbar'],
@ -111,7 +111,7 @@ export class StateDialogComponent implements OnInit {
if(this.progress == 100){ if(this.progress == 100){
this.diasbled = false; this.diasbled = false;
this.bdiasbled = true; this.bdiasbled = true;
this._snackBar.open(this.languageService.lMap.get('stateDialogSnackBarMsg1Success') + this.findStateName(change.currentState) +' -> '+this.findStateName(change.nextState) + this.languageService.lMap.get('stateDialogSnackBarMsg2Success') , this._snackBar.open(this.languageService.lMap.get('stateDialogSnackBarMsg1Success') + ': ' + this.findStateName(change.currentState) +' -> '+this.findStateName(change.nextState) + this.languageService.lMap.get('stateDialogSnackBarMsg2Success') ,
this.languageService.lMap.get('stateDialogSnackBarActionSuccess'), this.languageService.lMap.get('stateDialogSnackBarActionSuccess'),
{ {
horizontalPosition: this.horizontalPosition, horizontalPosition: this.horizontalPosition,