Skip to content
Snippets Groups Projects
Commit b3ebeb8a authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FEAT #10633 TIME 0:10 fix if

parent 38e46753
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,7 @@ export class ValidateAvisParallelComponent implements AfterViewInit { ...@@ -33,7 +33,7 @@ export class ValidateAvisParallelComponent implements AfterViewInit {
availableRoles: any[] = []; availableRoles: any[] = [];
@ViewChild('noteEditor', { static: true }) noteEditor: NoteEditorComponent; @ViewChild('noteEditor', { static: false }) noteEditor: NoteEditorComponent;
@ViewChild('appAvisWorkflow', { static: false }) appAvisWorkflow: AvisWorkflowComponent; @ViewChild('appAvisWorkflow', { static: false }) appAvisWorkflow: AvisWorkflowComponent;
constructor( constructor(
...@@ -111,7 +111,7 @@ export class ValidateAvisParallelComponent implements AfterViewInit { ...@@ -111,7 +111,7 @@ export class ValidateAvisParallelComponent implements AfterViewInit {
).subscribe(); ).subscribe();
} }
isValidAction() { isValidAction() {
if (this.data.resIds.length === 1) { if (this.data.resIds.length === 1) {
if (!this.noResourceToProcess && this.noteEditor !== undefined && this.appAvisWorkflow !== undefined && !this.appAvisWorkflow.emptyWorkflow() && !this.appAvisWorkflow.workflowEnd() && !this.functions.empty(this.noteEditor.getNoteContent()) && !this.functions.empty(this.functions.formatDateObjectToFrenchDateString(this.opinionLimitDate))) { if (!this.noResourceToProcess && this.noteEditor !== undefined && this.appAvisWorkflow !== undefined && !this.appAvisWorkflow.emptyWorkflow() && !this.appAvisWorkflow.workflowEnd() && !this.functions.empty(this.noteEditor.getNoteContent()) && !this.functions.empty(this.functions.formatDateObjectToFrenchDateString(this.opinionLimitDate))) {
return true; return true;
...@@ -125,6 +125,5 @@ export class ValidateAvisParallelComponent implements AfterViewInit { ...@@ -125,6 +125,5 @@ export class ValidateAvisParallelComponent implements AfterViewInit {
return false; return false;
} }
} }
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment