Skip to content

Commit

Permalink
cockpit fix toast and labels
Browse files Browse the repository at this point in the history
  • Loading branch information
MrJimmyChevallier committed Feb 19, 2025
1 parent 86bd76a commit 5072ae2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
11 changes: 9 additions & 2 deletions front/src/app/routes/calculator/calculator.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,10 @@ export class CalculatorPage
* Placeholder referentiel name
*/
defaultRefName: string = '';
/**
* Indique si un référentiel vient d'être créé par sauvegarde des temps affichés
*/
createSaveReferentiel: boolean = false;
/**
* Nombre de jours travaillé par magistrat
*/
Expand Down Expand Up @@ -405,7 +409,9 @@ export class CalculatorPage

this.watch(
this.contentieuxOptionsService.backupId.subscribe(() => {
this.onLoad();
if (this.createSaveReferentiel) {
this.createSaveReferentiel = false;
} else this.onLoad();
})
);
this.watch(
Expand Down Expand Up @@ -1946,6 +1952,8 @@ export class CalculatorPage

let list = new Array();

this.createSaveReferentiel = true;

datas.map((y) => {
list.push({
averageProcessingTime:
Expand Down Expand Up @@ -1986,7 +1994,6 @@ export class CalculatorPage
if (event.id === 'save') {
this.saveCurrentAvgTime();
this.displayRouterRef = true;
console.log(this.defaultRefName);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
'chevron_right' }}
</mat-icon>

<p>{{ userService.referentielMappingNameByInterface(calculator.contentieux.label)
}}</p>
<p>{{calculator.contentieux.label}}</p>
</div>

<div [ngClass]="{ selected: sortBy === 'realDTESInMonths' }" class="item dtes">
Expand Down

0 comments on commit 5072ae2

Please sign in to comment.