Skip to content
Snippets Groups Projects
Commit 5267a124 authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FEAT #13271 TIME 0:20 fix editmode + fix filter

parent a937f151
No related branches found
No related tags found
No related merge requests found
......@@ -146,12 +146,16 @@ export class AdministrationService {
}
setDataSource(adminId: string, data: any, sort: MatSort, paginator: MatPaginator, filterColumns: string[]) {
this.currentAdminId = adminId;
if (this.localStorage.get(`filtersAdmin_${this.headerService.user.id}`) !== null) {
this.filters = JSON.parse(this.localStorage.get(`filtersAdmin_${this.headerService.user.id}`));
if (this.filters[adminId] === undefined) {
this.saveDefaultFilter();
}
} else {
this.saveDefaultFilter();
}
this.currentAdminId = adminId;
this.searchTerm = new FormControl('');
this.searchTerm.valueChanges
......
......@@ -57,7 +57,7 @@ export class AttachmentsListComponent implements OnInit {
@Input() resId: number = null;
@Input() target: string = 'panel';
@Input() autoOpenCreation: boolean = false;
@Input() canModify: boolean = false;
@Input() canModify: boolean = null;
@Output() reloadBadgeAttachments = new EventEmitter<string>();
@Output() afterActionAttachment = new EventEmitter<string>();
......
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