Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
digibib
deichman
Commits
0f7158d6
Commit
0f7158d6
authored
Jun 15, 2021
by
Magnus Westergaard
Browse files
DEICH-5615
: Display error message if no date is given for deviating opening hours.
parent
5c712f32
Changes
1
Hide whitespace changes
Inline
Side-by-side
tjenestekatalog/src/components/EditBranches.svelte
View file @
0f7158d6
...
...
@@ -133,6 +133,10 @@
}
if
(
branch
.
deviatingOpeningHours
)
{
for
(
let
i
=
0
;
i
<
branch
.
deviatingOpeningHours
.
length
;
i
++
)
{
if
(
!
branch
.
deviatingOpeningHours
[
i
].
periodStart
)
{
return
{
error
:
"
Ugyldig input
"
,
message
:
"
Dato må være angitt
"
,
details
:
"
En avvikende åpningstid mangler dato. Vennligst fyll inn en dato eller periode.
"
}
}
const
manned
=
branch
.
deviatingOpeningHours
[
i
].
manned
if
(
manned
)
{
const
mannedFrom
=
branch
.
deviatingOpeningHours
[
i
].
mannedFrom
...
...
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