Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dusken-client
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
EDB
dusken-client
Commits
d9ee2e50
Commit
d9ee2e50
authored
May 05, 2019
by
Nikolai R Kristiansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐛
Support events without end_time
parent
8d74dfd2
Pipeline
#711
failed with stage
in 1 minute and 44 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
src/modules/events/EventDetail.js
src/modules/events/EventDetail.js
+7
-5
No files found.
src/modules/events/EventDetail.js
View file @
d9ee2e50
...
...
@@ -177,9 +177,14 @@ export default class EventDetail extends Component {
return
null
;
}
formatTimeFull
(
item
)
{
const
endTime
=
item
.
end_time
?
` -
${
this
.
_formatTime
(
item
.
end_time
)}
`
:
''
;
const
startTime
=
`
${
this
.
_formatLocalDay
(
item
.
start_time
)}
kl.
${
this
.
_formatTime
(
item
.
start_time
)}
`
;
return
`
${
startTime
}${
endTime
}
`
;
}
render
()
{
const
{
item
}
=
this
.
props
;
return
(
<
ScrollView
>
{
this
.
showImage
()}
...
...
@@ -205,10 +210,7 @@ export default class EventDetail extends Component {
<
Icon
name
=
"
time
"
style
=
{
styles
.
icons
}
/
>
<
/View
>
<
View
style
=
{{
flexDirection
:
'
column
'
}}
>
<
Text
style
=
{
styles
.
metaText
}
>
{
this
.
_formatLocalDay
(
item
.
start_time
)}
kl
.
{
this
.
_formatTime
(
item
.
start_time
)}
-
{
'
'
}
{
this
.
_formatTime
(
item
.
end_time
)}
<
/Text
>
<
Text
style
=
{
styles
.
metaText
}
>
{
this
.
formatTimeFull
(
item
)}
<
/Text
>
<
Text
style
=
{
styles
.
metaSubtitle
}
>
{
this
.
_formatRelative
(
item
.
start_time
)}
<
/Text
>
<
/View
>
<
/TouchableOpacity
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment