[SI-739] modifications from test Signed-off-by: Peter Buschmann <peter.buschmann@pta.de>
diff --git a/projects/grid-failure-information-app/src/app/shared/components/cell-renderer/icon-cell-renderer/icon-cell-renderer.component.ts b/projects/grid-failure-information-app/src/app/shared/components/cell-renderer/icon-cell-renderer/icon-cell-renderer.component.ts index 9f73419..88a8288 100644 --- a/projects/grid-failure-information-app/src/app/shared/components/cell-renderer/icon-cell-renderer/icon-cell-renderer.component.ts +++ b/projects/grid-failure-information-app/src/app/shared/components/cell-renderer/icon-cell-renderer/icon-cell-renderer.component.ts
@@ -63,7 +63,8 @@ private _updateIcon(): void { this.params.context.eventSubject.subscribe((event: any) => { - let publicationStatusIsPublished: boolean = this.params.data.publicationStatus === StateEnum.PUBLISHED; + let publicationStatusIsPublishedOrWithdrawn: boolean = + this.params.data.publicationStatus === StateEnum.PUBLISHED || this.params.data.publicationStatus === StateEnum.WITHDRAWN; switch (event.eventType) { case this._modeEnum.InitialMode: this.editIcon = true && !this.readonlyIcon; @@ -73,7 +74,7 @@ break; case this._modeEnum.OverviewTableSelectionMode: this.editIcon = false; - this.addIcon = !this.params.data.condensed && !publicationStatusIsPublished; + this.addIcon = !this.params.data.condensed && !publicationStatusIsPublishedOrWithdrawn; this.condensedIcon = false; break; case this._modeEnum.CondensationTableSelectionMode:
diff --git a/projects/grid-failure-information-app/src/app/shared/constants/enums.ts b/projects/grid-failure-information-app/src/app/shared/constants/enums.ts index 82b65a4..e77a125 100644 --- a/projects/grid-failure-information-app/src/app/shared/constants/enums.ts +++ b/projects/grid-failure-information-app/src/app/shared/constants/enums.ts
@@ -48,6 +48,7 @@ COMPLETED = 'abgeschlossen', PUBLISHED = 'veröffentlicht', DELETED = 'gelöscht', + WITHDRAWN = 'zurückgezogen', } export enum ModeEnum { InitialMode = 'initialMode',