Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MaarchCourrier
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Harbor Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maarch
MaarchCourrier
Commits
ed80381c
Commit
ed80381c
authored
4 years ago
by
Hamza HRAMCHI
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/frontend/app/administration/search/search-administration.component.ts
+3
-1
3 additions, 1 deletion
.../administration/search/search-administration.component.ts
src/frontend/service/privileges.service.ts
+11
-1
11 additions, 1 deletion
src/frontend/service/privileges.service.ts
with
14 additions
and
2 deletions
src/frontend/app/administration/search/search-administration.component.ts
+
3
−
1
View file @
ed80381c
...
...
@@ -241,7 +241,7 @@ export class SearchAdministrationComponent implements OnInit {
};
selectedProcessToolClone
:
string
=
null
;
searchAdv
:
any
=
{
listEvent
:
{},
listDisplay
:
{},
list
E
vent_data
:
{}
};
searchAdv
:
any
=
{
listEvent
:
{},
listDisplay
:
{},
list
_e
vent_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
,
...
...
This diff is collapsed.
Click to expand it.
src/frontend/service/privileges.service.ts
+
11
−
1
View file @
ed80381c
...
...
@@ -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
[]
=
[
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment