Commit ac9a6a51 authored by Maël QUAISSARD's avatar Maël QUAISSARD Committed by Gaëlle FOURNIER
Browse files

19714 - probative value - Fix notification message


Co-authored-by: default avatarbenemart <benedicte.martinez@cea.fr>
parent f694936a
......@@ -45,7 +45,7 @@
(orderChange)="emitOrderChange()"></vitamui-common-order-by-button>
</div>
</th>
<th i18n="">
<th>
<div class="vitamui-table-header">
<span i18n="accessContract creation date column header@@accessContractListCreationDateHeader">Date de création</span>
<vitamui-common-order-by-button orderByKey="CreationDate" [(orderBy)]="orderBy" [(direction)]="direction"
......
......@@ -20,8 +20,6 @@ export class ProbativeValueService extends SearchService<Event> {
}
create(probativeValueRequest: any, headers: HttpHeaders) {
console.log('Probative value, DSL: ', probativeValueRequest);
for (const header in this.headers) {
if (this.headers.hasOwnProperty(header)) {
headers.set(header, this.headers.get(header));
......@@ -31,10 +29,10 @@ export class ProbativeValueService extends SearchService<Event> {
return this.operationApiService.runProbativeValue(probativeValueRequest, headers)
.pipe(
tap(
(response: any) => {
() => {
this.snackBar.openFromComponent(VitamUISnackBarComponent, {
panelClass: 'vitamui-snack-bar',
data: {type: 'probativeValueRun', name: response.identifier},
data: {type: 'probativeValueRun'},
duration: 10000
});
},
......
......@@ -91,6 +91,10 @@
<i class="vitamui-icon vitamui-icon-audit"></i> L'audit {{data?.id}} a bien été lancé.
</ng-container>
<ng-container *ngSwitchCase="'probativeValueRun'" i18n="@@notificationProbativeValueRun">
Le relevé de valeur probante a bien été lancé
</ng-container>
</span>
<button class="close-btn" (click)="close()"><i class="material-icons">clear</i></button>
......
......@@ -771,7 +771,15 @@
<x id="START_ITALIC_TEXT" ctype="x-i" equiv-text="&lt;i>"/><x id="CLOSE_ITALIC_TEXT" ctype="x-i" equiv-text="&lt;/i>"/> L'audit <x id="INTERPOLATION" equiv-text="{{data?.id}}"/> a bien été lancé.
</source><target state="new"/>
<context-group purpose="location"><context context-type="sourcefile">src/app/shared/vitamui-snack-bar/vitamui-snack-bar.component.html</context><context context-type="linenumber">90</context></context-group></trans-unit><trans-unit id="confirmActionConfirmDialogConfirmLabel" datatype="html">
<context-group purpose="location"><context context-type="sourcefile">src/app/shared/vitamui-snack-bar/vitamui-snack-bar.component.html</context><context context-type="linenumber">90</context></context-group></trans-unit><trans-unit id="notificationProbativeValueRun" datatype="html">
<source>
Le relevé de valeur probante a bien été lancé
</source><target state="new"/>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/vitamui-snack-bar/vitamui-snack-bar.component.html</context>
<context context-type="linenumber">94</context>
</context-group>
</trans-unit><trans-unit id="confirmActionConfirmDialogConfirmLabel" datatype="html">
<source>Valider</source><target state="new"/>
......
......@@ -859,7 +859,17 @@
<x id="START_ITALIC_TEXT" ctype="x-i" equiv-text="&lt;i>"/><x id="CLOSE_ITALIC_TEXT" ctype="x-i" equiv-text="&lt;/i>"/> L'audit <x id="INTERPOLATION" equiv-text="{{data?.id}}"/> a bien été lancé.
</target>
<context-group purpose="location"><context context-type="sourcefile">src/app/shared/vitamui-snack-bar/vitamui-snack-bar.component.html</context><context context-type="linenumber">90</context></context-group></trans-unit><trans-unit id="confirmActionConfirmDialogConfirmLabel" datatype="html">
<context-group purpose="location"><context context-type="sourcefile">src/app/shared/vitamui-snack-bar/vitamui-snack-bar.component.html</context><context context-type="linenumber">90</context></context-group></trans-unit><trans-unit id="notificationProbativeValueRun" datatype="html">
<source>
Le relevé de valeur probante a bien été lancé
</source><target state="final">
Le relevé de valeur probante a bien été lancé
</target>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/vitamui-snack-bar/vitamui-snack-bar.component.html</context>
<context context-type="linenumber">94</context>
</context-group>
</trans-unit><trans-unit id="confirmActionConfirmDialogConfirmLabel" datatype="html">
<source>Valider</source><target state="final">Valider</target>
......
......@@ -1062,6 +1062,15 @@
<context context-type="linenumber">90</context>
</context-group>
</trans-unit>
<trans-unit id="notificationProbativeValueRun" datatype="html">
<source>
Le relevé de valeur probante a bien été lancé
</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/vitamui-snack-bar/vitamui-snack-bar.component.html</context>
<context context-type="linenumber">94</context>
</context-group>
</trans-unit>
<trans-unit id="confirmActionConfirmDialogConfirmLabel" datatype="html">
<source>Valider</source>
<context-group purpose="location">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment