diff --git a/api/src/app.module.ts b/api/src/app.module.ts
index bc7cf7f..2c53611 100644
--- a/api/src/app.module.ts
+++ b/api/src/app.module.ts
@@ -22,7 +22,7 @@ import { LogModule } from './modules/log/log.module';
envFilePath: ['.env'],
isGlobal: true,
}),
- CacheModule.register({ ttl: 5000, isGlobal: true }),
+ CacheModule.register({ ttl: 1000, isGlobal: true }),
DatabaseModule,
AuthModule,
UserModule,
diff --git a/client/src/app/modules/cylinder/cylinder.component.ts b/client/src/app/modules/cylinder/cylinder.component.ts
index aef82cf..5e9a986 100644
--- a/client/src/app/modules/cylinder/cylinder.component.ts
+++ b/client/src/app/modules/cylinder/cylinder.component.ts
@@ -45,17 +45,19 @@ export class CylinderComponent {
}
loadCylinders() {
- this.api.getCylinders().subscribe({
- next: n => {
- this.gridApi.setGridOption("rowData", n);
- this.gridApi.setGridOption("loading", false);
- }
- })
+ this.gridApi.setGridOption("loading", true);
+ this.api.refreshCylinders();
}
onGridReady(params: GridReadyEvent) {
this.gridApi = params.api;
this.loadCylinders();
+ this.api.cylinders.asObservable().subscribe({
+ next: (data) => {
+ this.gridApi.setGridOption("rowData", data);
+ this.gridApi.setGridOption("loading", false);
+ }
+ })
}
openCreateCylinder() {
diff --git a/client/src/app/modules/keys/components/handover-dialog/handover-dialog.component.html b/client/src/app/modules/keys/components/handover-dialog/handover-dialog.component.html
index 22f68e6..d5765d4 100644
--- a/client/src/app/modules/keys/components/handover-dialog/handover-dialog.component.html
+++ b/client/src/app/modules/keys/components/handover-dialog/handover-dialog.component.html
@@ -36,7 +36,7 @@
Datum der Übergabe
- TT/MM/JJJJ
+ TT.MM.JJJJ (Beispiel: {{ exampleDate | date:'dd.MM.yyyy'}})
@@ -44,7 +44,7 @@
-