Skip to content

Commit

Permalink
added padding to dialog, and reload when dialog dismissed.
Browse files Browse the repository at this point in the history
  • Loading branch information
MadsApollo committed Sep 20, 2024
1 parent aea6426 commit 5a059b7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ <h1 mat-dialog-title>{{ "IOTDEVICE.CHANGE-APPLICATION.TITLE" | translate }}</h1>
</ng-container>
</div>

<div mat-dialog-actions class="d-flex flex-row">
<div mat-dialog-actions class="d-flex flex-row mat-dialog-actions">
<button (click)="onSubmit()" class="btn btn-primary">
{{ "GEN.SAVE" | translate }}
</button>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
.iot-device-change-application-dialog {
width: 50vw;
}

.mat-dialog-actions {
margin-left: 13px;
margin-bottom: 13px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -192,12 +192,13 @@ export class IoTDeviceChangeApplicationDialogComponent implements OnInit {
deviceName: savedIoTDevice.name,
applicationName: savedIoTDevice.application.name,
}),
"",
this.translate.instant("DIALOG.OK"),
{
duration: 10000,
}
);
this.dialog.close(true);
this.snackBar._openedSnackBarRef.afterDismissed().subscribe(() => location.reload());
});
}
}

0 comments on commit 5a059b7

Please sign in to comment.