Skip to content

Commit

Permalink
Merge pull request #706 from LINCnil/prepare-new-pdf
Browse files Browse the repository at this point in the history
Implements pdf from scratch
  • Loading branch information
kevin-atnos authored Feb 21, 2023
2 parents ddcebb8 + 5e11b99 commit 901947a
Show file tree
Hide file tree
Showing 24 changed files with 5,814 additions and 950 deletions.
1,177 changes: 881 additions & 296 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"@angular/platform-browser-dynamic": "~11.0.9",
"@angular/router": "~11.0.9",
"@angular/service-worker": "~11.0.9",
"@atnos/pia-i18n": "^0.0.13",
"@atnos/pia-i18n": "^0.0.14",
"@ngx-translate/core": "^13.0.0",
"@ngx-translate/http-loader": "^6.0.0",
"@types/intro.js": "^2.4.8",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,7 @@
>
<p
class="pia-evaluationBlock-gauge"
[innerHTML]="
'evaluations.gauges.seriousness' | translate: riskName
"
[innerHTML]="'evaluations.gauges.seriousness' | translate"
></p>
<div class="pia-gaugeBlock">
<input
Expand Down Expand Up @@ -226,9 +224,7 @@

<p
class="pia-evaluationBlock-gauge"
[innerHTML]="
'evaluations.gauges.likelihood' | translate: riskName
"
[innerHTML]="'evaluations.gauges.likelihood' | translate"
></p>
<div class="pia-gaugeBlock">
<input
Expand Down
20 changes: 0 additions & 20 deletions src/app/modules/pia/content/evaluations/evaluations.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import { EvaluationService } from 'src/app/services/evaluation.service';
})
export class EvaluationsComponent
implements OnInit, AfterViewChecked, OnDestroy, DoCheck {
private riskSubscription: Subscription;
private placeholderSubscription: Subscription;
evaluationForm: FormGroup;
@Input() editMode:
Expand All @@ -47,7 +46,6 @@ export class EvaluationsComponent
previousGauges = { x: 0, y: 0 };
previousReferenceTo: string;
hasResizedContent = false;
riskName: any;
actionPlanCommentElementId: string;
evaluationCommentElementId: string;
editor: any;
Expand All @@ -73,23 +71,6 @@ export class EvaluationsComponent
this.loading = false;
});

this.riskName = {
value: this.translateService.instant(
'sections.3.items.' + this.item.id + '.title'
)
};

// Updating translations when changing language (risks' names)
this.riskSubscription = this.translateService.onLangChange.subscribe(
(event: LangChangeEvent) => {
this.riskName = {
value: this.translateService.instant(
'sections.3.items.' + this.item.id + '.title'
)
};
}
);

// Updating translations when changing language (comments' placeholders)
this.placeholderSubscription = this.translateService.onLangChange.subscribe(
(event: LangChangeEvent) => {
Expand Down Expand Up @@ -143,7 +124,6 @@ export class EvaluationsComponent
}

ngOnDestroy(): void {
this.riskSubscription.unsubscribe();
this.placeholderSubscription.unsubscribe();
tinymce.remove(this.editor);
tinymce.remove(this.editorEvaluationComment);
Expand Down
Loading

0 comments on commit 901947a

Please sign in to comment.