diff --git a/libs/cases/frontend/view/src/lib/components/detail-case/detail-case.component.html b/libs/cases/frontend/view/src/lib/components/detail-case/detail-case.component.html index db3e377a..f3579293 100644 --- a/libs/cases/frontend/view/src/lib/components/detail-case/detail-case.component.html +++ b/libs/cases/frontend/view/src/lib/components/detail-case/detail-case.component.html @@ -1,6 +1,6 @@ @if(casedetail(); as _case){ - + {{ isEditing ? 'Submit changes' : 'Update Case' }} @@ -34,7 +34,7 @@

_Case {{ _case.handle }}

- +
@@ -64,11 +64,16 @@

_Case {{ _case.handle }}

- - - - + +
+
+ + + +
+
+
diff --git a/libs/cases/frontend/view/src/lib/components/detail-case/detail-case.component.ts b/libs/cases/frontend/view/src/lib/components/detail-case/detail-case.component.ts index 34eb05a9..932aeca8 100644 --- a/libs/cases/frontend/view/src/lib/components/detail-case/detail-case.component.ts +++ b/libs/cases/frontend/view/src/lib/components/detail-case/detail-case.component.ts @@ -12,6 +12,7 @@ import { ActivatedRoute, RouterLink } from '@angular/router'; import { XdCasesFacade } from '@frontend/cases/frontend/domain'; import { IxModule, ModalService, ToastService } from '@siemens/ix-angular'; import { ECasePriority, ECaseStatus, ECaseType, ICaseResponse } from 'cases-shared-models'; +import { AuthenticationService } from 'common-frontend-models'; import DeleteModalComponent from './delete-modal/deleteModal.component'; @@ -43,6 +44,7 @@ export class DetailCaseComponent { protected readonly route: ActivatedRoute, private readonly _modalService: ModalService, private readonly toastService: ToastService, + protected _authenticationService: AuthenticationService, ) {} deleteCase() { @@ -86,8 +88,15 @@ export class DetailCaseComponent { } } + getUserMail() { + return this._authenticationService.getUserMail(); + } + onSubmit(): void { const casedetail = this.casedetail(); + if (casedetail !== undefined) { + casedetail.modifiedBy = this.getUserMail(); + } if (casedetail !== undefined) { const validationString = this.validateForm(casedetail);