From a7fdbefd30614cde2cbe98fa90b86a3da82aa58e Mon Sep 17 00:00:00 2001 From: jbrieuclp Date: Fri, 8 Nov 2024 09:43:53 +0100 Subject: [PATCH 1/2] lint --- .../occtax/frontend/app/occtax-form/occtax-form.service.ts | 6 ++---- .../form/dynamic-form/dynamic-form.component.html | 2 +- .../discussionCardModule/discussion-card.component.html | 2 +- .../synthese-info-obs/synthese-info-obs.component.html | 2 +- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/contrib/occtax/frontend/app/occtax-form/occtax-form.service.ts b/contrib/occtax/frontend/app/occtax-form/occtax-form.service.ts index eee344f565..8e553112e9 100644 --- a/contrib/occtax/frontend/app/occtax-form/occtax-form.service.ts +++ b/contrib/occtax/frontend/app/occtax-form/occtax-form.service.ts @@ -122,17 +122,16 @@ export class OcctaxFormService { } addOccurrenceData(occurrence): void { - let occtaxData = this.occtaxData.getValue(); + const occtaxData = this.occtaxData.getValue(); if (!occtaxData.releve.properties.t_occurrences_occtax) { occtaxData.releve.properties.t_occurrences_occtax = []; } occtaxData.releve.properties.t_occurrences_occtax.push(occurrence); - this.occtaxData.next(occtaxData); } removeOccurrenceData(id_occurrence): void { - let occtaxData = this.occtaxData.getValue(); + const occtaxData = this.occtaxData.getValue(); if (occtaxData.releve.properties.t_occurrences_occtax) { for (let i = 0; i < occtaxData.releve.properties.t_occurrences_occtax.length; i++) { if ( @@ -144,7 +143,6 @@ export class OcctaxFormService { } } } - this.occtaxData.next(occtaxData); } replaceOccurrenceData(occurrence): void { diff --git a/frontend/src/app/GN2CommonModule/form/dynamic-form/dynamic-form.component.html b/frontend/src/app/GN2CommonModule/form/dynamic-form/dynamic-form.component.html index 04200a1793..2fd0925e68 100644 --- a/frontend/src/app/GN2CommonModule/form/dynamic-form/dynamic-form.component.html +++ b/frontend/src/app/GN2CommonModule/form/dynamic-form/dynamic-form.component.html @@ -11,7 +11,7 @@ 'number', 'file', 'medias', - 'bool_radio' + 'bool_radio', ].includes(formDefComp['type_widget']) " > diff --git a/frontend/src/app/shared/discussionCardModule/discussion-card.component.html b/frontend/src/app/shared/discussionCardModule/discussion-card.component.html index 519569ac7f..f2fe7571ba 100644 --- a/frontend/src/app/shared/discussionCardModule/discussion-card.component.html +++ b/frontend/src/app/shared/discussionCardModule/discussion-card.component.html @@ -117,7 +117,7 @@ color: ['0', '6'].includes(comment.cd_nomenclature) ? 'darkslategray' : 'white', border: ['0', '6'].includes(comment.cd_nomenclature) ? '1px solid rgba(0,0,0,0.2)' - : 'none' + : 'none', }" > {{ comment.label_default }} diff --git a/frontend/src/app/shared/syntheseSharedModule/synthese-info-obs/synthese-info-obs.component.html b/frontend/src/app/shared/syntheseSharedModule/synthese-info-obs/synthese-info-obs.component.html index 876ef0408a..8aa9d646a1 100644 --- a/frontend/src/app/shared/syntheseSharedModule/synthese-info-obs/synthese-info-obs.component.html +++ b/frontend/src/app/shared/syntheseSharedModule/synthese-info-obs/synthese-info-obs.component.html @@ -25,7 +25,7 @@ aria-label="Close" (click)="activeModal.dismiss('Cross click')" [ngStyle]="{ - outlineWidth: '0px' + outlineWidth: '0px', }" data-qa="synthese-info-obs-close-btn" > From 0429033f733d19afcc9121f615dc6e29a06bef37 Mon Sep 17 00:00:00 2001 From: Pierre-Narcisi Date: Mon, 6 Jan 2025 15:14:05 +0100 Subject: [PATCH 2/2] fix lint --- .../form/dynamic-form/dynamic-form.component.html | 2 +- .../shared/discussionCardModule/discussion-card.component.html | 2 +- .../synthese-info-obs/synthese-info-obs.component.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/GN2CommonModule/form/dynamic-form/dynamic-form.component.html b/frontend/src/app/GN2CommonModule/form/dynamic-form/dynamic-form.component.html index 2fd0925e68..04200a1793 100644 --- a/frontend/src/app/GN2CommonModule/form/dynamic-form/dynamic-form.component.html +++ b/frontend/src/app/GN2CommonModule/form/dynamic-form/dynamic-form.component.html @@ -11,7 +11,7 @@ 'number', 'file', 'medias', - 'bool_radio', + 'bool_radio' ].includes(formDefComp['type_widget']) " > diff --git a/frontend/src/app/shared/discussionCardModule/discussion-card.component.html b/frontend/src/app/shared/discussionCardModule/discussion-card.component.html index f2fe7571ba..519569ac7f 100644 --- a/frontend/src/app/shared/discussionCardModule/discussion-card.component.html +++ b/frontend/src/app/shared/discussionCardModule/discussion-card.component.html @@ -117,7 +117,7 @@ color: ['0', '6'].includes(comment.cd_nomenclature) ? 'darkslategray' : 'white', border: ['0', '6'].includes(comment.cd_nomenclature) ? '1px solid rgba(0,0,0,0.2)' - : 'none', + : 'none' }" > {{ comment.label_default }} diff --git a/frontend/src/app/shared/syntheseSharedModule/synthese-info-obs/synthese-info-obs.component.html b/frontend/src/app/shared/syntheseSharedModule/synthese-info-obs/synthese-info-obs.component.html index 8aa9d646a1..876ef0408a 100644 --- a/frontend/src/app/shared/syntheseSharedModule/synthese-info-obs/synthese-info-obs.component.html +++ b/frontend/src/app/shared/syntheseSharedModule/synthese-info-obs/synthese-info-obs.component.html @@ -25,7 +25,7 @@ aria-label="Close" (click)="activeModal.dismiss('Cross click')" [ngStyle]="{ - outlineWidth: '0px', + outlineWidth: '0px' }" data-qa="synthese-info-obs-close-btn" >