Skip to content
Snippets Groups Projects
Commit ed80381c authored by Hamza HRAMCHI's avatar Hamza HRAMCHI
Browse files

FEAT #13271 TIME 0:04 add the admin search privilege

parent af55d92e
No related branches found
No related tags found
No related merge requests found
......@@ -241,7 +241,7 @@ export class SearchAdministrationComponent implements OnInit {
};
selectedProcessToolClone: string = null;
searchAdv: any = { listEvent: {}, listDisplay: {}, listEvent_data: {} };
searchAdv: any = { listEvent: {}, listDisplay: {}, list_event_data: {} };
constructor(public translate: TranslateService, public http: HttpClient, private notify: NotificationService, public appService: AppService, public headerService: HeaderService) { }
......@@ -375,8 +375,10 @@ export class SearchAdministrationComponent implements OnInit {
const defaultTab = templateData.configuration.listEvent.defaultTab;
const subInfos = templateData.configuration.listDisplay.subInfos;
const displayData = JSON.parse(JSON.stringify(subInfos));
this.selectedProcessTool.defaultTab = defaultTab;
this.selectedTemplateDisplayedSecondaryData = templateData.configuration.listDisplay.templateColumns;
displayData.forEach((element: { value: any; cssClasses: any; icon: any; }) => {
this.displayedSecondaryData.push({
'value': element.value,
......
......@@ -294,7 +294,17 @@ export class PrivilegeService {
'style': 'fas fa-dolly-flatbed',
'angular': true,
'hasParams': false
}
},
{
'id': 'search_administration',
'label': 'lang.searchAdministration',
'comment': 'lang.searchAdministration',
'route': '/administration/search',
'unit': 'supervision',
'style': 'fas fa-search',
'angular': true,
'hasParams': false
},
];
private privileges: privilege[] = [
......
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