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
39d0ec39
Commit
39d0ec39
authored
4 years ago
by
Nithya
Browse files
Options
Downloads
Patches
Plain Diff
TMSS-268
Duration Updated
parent
5acf2e9d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!198
Resolve TMSS-268
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SAS/TMSS/frontend/tmss_webapp/src/routes/Scheduling/SchedulingUnitList.js
+5
-4
5 additions, 4 deletions
...d/tmss_webapp/src/routes/Scheduling/SchedulingUnitList.js
with
5 additions
and
4 deletions
SAS/TMSS/frontend/tmss_webapp/src/routes/Scheduling/SchedulingUnitList.js
+
5
−
4
View file @
39d0ec39
import
React
,
{
Component
}
from
'
react
'
import
React
,
{
Component
}
from
'
react
'
import
'
primeflex/primeflex.css
'
;
import
'
primeflex/primeflex.css
'
;
import
moment
from
'
moment
'
;
import
moment
,
{
duration
}
from
'
moment
'
;
import
AppLoader
from
"
./../../layout/components/AppLoader
"
;
import
AppLoader
from
"
./../../layout/components/AppLoader
"
;
import
ViewTable
from
'
./../../components/ViewTable
'
;
import
ViewTable
from
'
./../../components/ViewTable
'
;
...
@@ -37,6 +37,8 @@ class SchedulingUnitList extends Component{
...
@@ -37,6 +37,8 @@ class SchedulingUnitList extends Component{
}]
}]
}
}
}
}
async
getSchedulingUnitList
()
{
async
getSchedulingUnitList
()
{
const
bluePrint
=
await
ScheduleService
.
getSchedulingUnitBlueprint
();
const
bluePrint
=
await
ScheduleService
.
getSchedulingUnitBlueprint
();
...
@@ -46,7 +48,7 @@ class SchedulingUnitList extends Component{
...
@@ -46,7 +48,7 @@ class SchedulingUnitList extends Component{
for
(
const
scheduleunit
of
scheduleunits
){
for
(
const
scheduleunit
of
scheduleunits
){
const
blueprintdata
=
bluePrint
.
data
.
results
.
filter
(
i
=>
i
.
draft_id
===
scheduleunit
.
id
);
const
blueprintdata
=
bluePrint
.
data
.
results
.
filter
(
i
=>
i
.
draft_id
===
scheduleunit
.
id
);
blueprintdata
.
map
(
blueP
=>
{
blueprintdata
.
map
(
blueP
=>
{
blueP
.
duration
=
moment
(
blueP
.
duration
).
format
(
'
HH:mm:ss
'
);
blueP
.
duration
=
moment
.
utc
(
blueP
.
duration
*
1000
).
format
(
'
HH:mm:ss
'
);
blueP
.
type
=
"
Blueprint
"
;
blueP
.
type
=
"
Blueprint
"
;
blueP
[
'
actionpath
'
]
=
'
/task/view/type/id
'
;
blueP
[
'
actionpath
'
]
=
'
/task/view/type/id
'
;
return
blueP
;
return
blueP
;
...
@@ -54,8 +56,7 @@ class SchedulingUnitList extends Component{
...
@@ -54,8 +56,7 @@ class SchedulingUnitList extends Component{
output
.
push
(...
blueprintdata
);
output
.
push
(...
blueprintdata
);
scheduleunit
[
'
actionpath
'
]
=
'
/schedulingunit/view
'
;
scheduleunit
[
'
actionpath
'
]
=
'
/schedulingunit/view
'
;
scheduleunit
[
'
type
'
]
=
'
Scheduling Unit
'
;
scheduleunit
[
'
type
'
]
=
'
Scheduling Unit
'
;
// scheduleunit['stop_time'] = blueprintdata.stop_time;
scheduleunit
[
'
duration
'
]
=
moment
.
utc
(
scheduleunit
.
duration
*
1000
).
format
(
'
HH:mm:ss
'
);
scheduleunit
[
'
duration
'
]
=
moment
(
scheduleunit
.
duration
).
format
(
'
HH:mm:ss
'
);
output
.
push
(
scheduleunit
);
output
.
push
(
scheduleunit
);
}
}
this
.
setState
({
this
.
setState
({
...
...
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