Skip to content
Snippets Groups Projects
Commit 440801dd authored by Marlène SIMONDANT's avatar Marlène SIMONDANT
Browse files

Hide action column is we are in the history

parent 05d5e60c
No related branches found
No related tags found
1 merge request!983feat(dashboard) : create dashboard !
Pipeline #124260 passed
......@@ -124,6 +124,7 @@
*ngIf="orientationsDashboard?.myOrientations.history.length > 0"
[from]="'myOrientations'"
[orientations]="orientationsDashboard?.myOrientations.history"
[history]="true"
/>
<!-- If there is no results -->
<div *ngIf="orientationsDashboard?.myOrientations.history.length === 0" class="empty">
......@@ -199,6 +200,7 @@
*ngIf="orientationsDashboard?.todoOrientations.history.length > 0"
[from]="'todoOrientations'"
[orientations]="orientationsDashboard?.todoOrientations.history"
[history]="true"
/>
<!-- If there is no results -->
<div *ngIf="orientationsDashboard?.todoOrientations.history.length === 0" class="empty">
......
......@@ -5,7 +5,8 @@
<div>Structure choisie</div>
<div>Statut</div>
<div *ngIf="from === 'myOrientations'">Type d'orientation</div>
<div *ngIf="from !== 'myOrientations'">Action</div>
<div *ngIf="from !== 'myOrientations' && !history">Action</div>
<div *ngIf="from !== 'myOrientations' && history">&nbsp;</div>
<div>&nbsp;</div>
</div>
<a
......@@ -107,7 +108,7 @@
[iconName]="this.orientationService.getTagProperty('type', orientation.accompanimentType, 'icon')"
/>
<app-tag-item
*ngIf="from !== 'myOrientations' && orientation.action"
*ngIf="from !== 'myOrientations' && orientation.action && !history"
[label]="this.orientationService.getTagProperty('action', orientation.action, 'label')"
[size]="'small'"
[color]="this.orientationService.getTagProperty('action', orientation.action, 'color')"
......
......@@ -15,6 +15,7 @@ export class OrientationsTableComponent {
@Input() orientations: any[];
@Input() from: string;
@Input() history?: boolean;
public isUrgent(orientation): boolean {
return (
......
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