Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
9a257066
Commit
9a257066
authored
3 years ago
by
Muthukrishnanmatriot
Browse files
Options
Downloads
Patches
Plain Diff
added feature to show multi task associated with subtask
parent
778de5b0
No related branches found
No related tags found
1 merge request
!471
Resolve TMSS-711
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SAS/TMSS/frontend/tmss_webapp/src/routes/Search/find.object.result.js
+13
-6
13 additions, 6 deletions
...ntend/tmss_webapp/src/routes/Search/find.object.result.js
with
13 additions
and
6 deletions
SAS/TMSS/frontend/tmss_webapp/src/routes/Search/find.object.result.js
+
13
−
6
View file @
9a257066
...
...
@@ -82,7 +82,12 @@ export class FindObjectResult extends Component{
<
span
className
=
"
find-obj-tree-view
"
>
<
a
href
=
{
subtaskDetails
.
url
}
target
=
'
_blank
'
title
=
"
View SubTask API
"
><
i
className
=
"
fa fa-link
"
/><
/a></
span
><
/>
;
subtask
[
'
icon
'
]
=
'
fas fa-tasks
'
;
subtask
[
'
children
'
]
=
await
this
.
findTask
(
'
blueprint
'
,
subtaskDetails
.
task_blueprint_id
);
let
tasks
=
[];
for
(
const
taskId
of
subtaskDetails
.
task_blueprints_ids
)
{
let
taskMap
=
await
this
.
findTask
(
'
blueprint
'
,
taskId
);
tasks
.
push
(
taskMap
[
0
]);
}
subtask
[
'
children
'
]
=
tasks
;
return
[
subtask
];
}
return
''
;
...
...
@@ -188,12 +193,14 @@ export class FindObjectResult extends Component{
}
expandNode
(
node
,
expandedKeys
)
{
expandNode
(
node
,
expandedKeys
,
expand
)
{
if
(
node
.
children
&&
node
.
children
.
length
)
{
expandedKeys
[
node
.
key
]
=
true
;
expandedKeys
[
node
.
key
]
=
expand
;
if
(
node
.
key
.
startsWith
(
'
subtask
'
)
&&
node
.
children
.
length
>
1
)
{
expand
=
false
;
}
for
(
let
child
of
node
.
children
)
{
this
.
expandNode
(
child
,
expandedKeys
);
this
.
expandNode
(
child
,
expandedKeys
,
expand
);
}
}
}
...
...
@@ -201,7 +208,7 @@ export class FindObjectResult extends Component{
expandAll
()
{
let
expandedKeys
=
{};
for
(
let
node
of
this
.
state
.
objNodes
)
{
this
.
expandNode
(
node
,
expandedKeys
);
this
.
expandNode
(
node
,
expandedKeys
,
true
);
}
this
.
setState
({
expandedKeys
:
expandedKeys
});
}
...
...
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