Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Itinerary
Commits
d1ac7811
Commit
d1ac7811
authored
Dec 30, 2020
by
Volker Krause
Browse files
Don't fail on location-less events
We can end up there with online events for example.
parent
7a9a7bf3
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/app/EventDelegate.qml
View file @
d1ac7811
...
...
@@ -42,7 +42,7 @@ App.TimelineDelegate {
spacing
:
Kirigami
.
Units
.
smallSpacing
QQC2.Label
{
text
:
reservationFor
.
location
.
name
text
:
reservationFor
.
location
!=
undefined
?
reservationFor
.
location
.
name
:
""
}
App.PlaceDelegate
{
place
:
reservationFor
.
location
...
...
@@ -50,6 +50,7 @@ App.TimelineDelegate {
isRangeBegin
:
root
.
rangeType
==
TimelineElement
.
RangeBegin
isRangeEnd
:
root
.
rangeType
==
TimelineElement
.
RangeEnd
width
:
topLayout
.
width
visible
:
reservationFor
.
location
!=
undefined
}
QQC2.Label
{
text
:
i18n
(
"
Start time: %1
"
,
Localizer
.
formatDateTime
(
reservationFor
,
"
startDate
"
))
...
...
src/app/EventPage.qml
View file @
d1ac7811
...
...
@@ -42,12 +42,14 @@ App.DetailsPage {
QQC2.Label
{
Kirigami.FormData.label
:
i18n
(
"
Location:
"
)
text
:
reservationFor
.
location
.
name
text
:
reservationFor
.
location
!=
undefined
?
reservationFor
.
location
.
name
:
""
visible
:
reservationFor
.
location
!=
undefined
}
App.PlaceDelegate
{
place
:
reservationFor
.
location
controller
:
root
.
controller
visible
:
reservationFor
.
location
!=
undefined
}
QQC2.Label
{
...
...
Write
Preview
Supports
Markdown
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