From 28cdcd9b09119194e80f14e41a58973750ad390a Mon Sep 17 00:00:00 2001 From: Ralf Aron Date: Fri, 8 Nov 2024 20:52:39 +0100 Subject: [PATCH] fix: bug fixing --- .../aas-lib/src/lib/index-change.service.ts | 8 +-- .../add-endpoint-form.component.html | 58 +++++++++---------- .../src/app/start/favorites.service.ts | 4 +- .../src/app/start/start-api.service.ts | 14 ++++- .../src/app/start/start.component.html | 4 +- .../src/app/start/start.component.ts | 8 ++- .../aas-portal/src/app/start/start.store.ts | 12 +++- .../aas-portal/src/assets/i18n/de-de.json | 14 ++++- .../aas-portal/src/assets/i18n/en-us.json | 14 ++++- .../aas-server/src/app/aas-index/aas-index.ts | 2 + .../src/app/aas-index/lowdb/lowdb-index.ts | 11 ++++ .../src/app/aas-index/mysql/mysql-index.ts | 42 ++++++++++---- .../src/app/aas-provider/aas-provider.ts | 16 ++++- .../app/controller/endpoints-controller.ts | 31 +++++++--- 14 files changed, 168 insertions(+), 70 deletions(-) diff --git a/projects/aas-lib/src/lib/index-change.service.ts b/projects/aas-lib/src/lib/index-change.service.ts index 3c02c78..8504d56 100644 --- a/projects/aas-lib/src/lib/index-change.service.ts +++ b/projects/aas-lib/src/lib/index-change.service.ts @@ -119,11 +119,11 @@ export class IndexChangeService { } private documentAdded(): void { - this.state.update(state => ({ ...state, addedDocuments: state.documentCount + 1 })); + this.state.update(state => ({ ...state, documentCount: state.documentCount + 1 })); } private documentRemoved(): void { - this.state.update(state => ({ ...state, removedDocuments: state.documentCount - 1 })); + this.state.update(state => ({ ...state, documentCount: state.documentCount - 1 })); } private documentUpdate(): void { @@ -131,10 +131,10 @@ export class IndexChangeService { } private endpointAdded(): void { - this.state.update(state => ({ ...state, addedEndpoints: state.endpointCount + 1 })); + this.state.update(state => ({ ...state, endpointCount: state.endpointCount + 1 })); } private endpointRemoved(): void { - this.state.update(state => ({ ...state, removedEndpoints: state.endpointCount - 1 })); + this.state.update(state => ({ ...state, endpointCount: state.endpointCount - 1 })); } } diff --git a/projects/aas-portal/src/app/start/add-endpoint-form/add-endpoint-form.component.html b/projects/aas-portal/src/app/start/add-endpoint-form/add-endpoint-form.component.html index c00578c..e68ec69 100644 --- a/projects/aas-portal/src/app/start/add-endpoint-form/add-endpoint-form.component.html +++ b/projects/aas-portal/src/app/start/add-endpoint-form/add-endpoint-form.component.html @@ -10,7 +10,7 @@ @@ -42,44 +42,42 @@