diff --git a/docs/release-notes-player.txt b/docs/release-notes-player.txt index f67f1b15de54524773504bae1d15e483679b11be..7de7fd6000dae311b453f93924a5aeb62919076b 100644 --- a/docs/release-notes-player.txt +++ b/docs/release-notes-player.txt @@ -5,6 +5,7 @@ Player - Color the disabled progress bar of the media player green - Fix the section from being placed in front of elements with negative z-index - Fix saving of drop list elements + - Show warning messages of input fields at event 'NavigationDenied' only if reason "responsesIncomplete" is sent 1.12.0 - Use fixed size property for dynamic button, drop-list and text-field components diff --git a/projects/player/src/app/components/unit-state/unit-state.component.ts b/projects/player/src/app/components/unit-state/unit-state.component.ts index 839f974e38ec22685d7607cebcfecd59c7111787..299d3a67dda200007863f93b422476370b0f2bc9 100644 --- a/projects/player/src/app/components/unit-state/unit-state.component.ts +++ b/projects/player/src/app/components/unit-state/unit-state.component.ts @@ -126,7 +126,9 @@ export class UnitStateComponent implements OnInit, OnDestroy { console.log('player: onNavigationDenied', message); const reasons = message.reason?.map((reason: string) => this.translateService.instant(reason)); this.messageService.showWarning(reasons?.join(', ') || this.translateService.instant('noReason')); - this.form.markAllAsTouched(); + if (message.reason && message.reason.find(reason => reason === 'responsesIncomplete')) { + this.form.markAllAsTouched(); + } } private addGroup = (group: ChildFormGroup): void => {