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

Merge branch 'feat/US227-unattached-date' into 'V2.0'

feat/US227-unattached-date

See merge request web-et-numerique/pamn_plateforme-des-acteurs-de-la-mediation-numerique/pamn_client!342
parents 1c2f313c 34a08bbf
No related branches found
No related tags found
4 merge requests!418V2.1.0,!400V2.0,!342feat/US227-unattached-date,!230V2.0
......@@ -29,7 +29,7 @@
*ngIf="validatedJobs && validatedEmployers"
class="ag-theme-alpine user-table"
[rowData]="unAttachedUsers"
[columnDefs]="columnDefs"
[columnDefs]="columnDefsUnattached"
rowSelection="multiple"
domLayout="autoHeight"
[getRowHeight]="getRowHeight"
......
......@@ -37,6 +37,7 @@ export class ManageUsersComponent {
public contextRow: any;
public columnDefs;
public columnDefsUnattached;
public frameworkComponents;
public defaultColDef = {
editable: true,
......@@ -122,6 +123,15 @@ export class ManageUsersComponent {
cellStyle: { 'text-align': 'center' },
},
];
this.columnDefsUnattached = [...this.columnDefs];
this.columnDefsUnattached = this.columnDefsUnattached.filter((item) =>
String(item.headerName).toLowerCase().indexOf('structure')
);
this.columnDefsUnattached.splice(this.columnDefsUnattached.length - 1, 0, {
headerName: 'Non rattaché depuis',
field: 'unattachedSince',
minWidth: 180,
});
this.frameworkComponents = {
deleteUserComponent: DeleteUserComponent,
jobRenderer: JobRenderer,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment