Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
AURA
dashboard
Commits
6782074a
Commit
6782074a
authored
Nov 26, 2019
by
jackie / Andrea Ida Malkah Klaura
Browse files
FIX
#32
use start & end to load all timeslots
parent
60981067
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/components/EmissionManagerModalEdit.vue
View file @
6782074a
...
...
@@ -54,7 +54,7 @@
</div>
<div
v-else
>
<p>
This is a recurring event:
<b>
{{
rruleRender
(
schedule
.
rrule
)
}}
</b>
, until:
{{
prettyDate
(
schedule
.
until
)
}}
</p>
<p>
All
<i>
upcoming
</i>
timeslots of this schedule:
</p>
<p>
All timeslots of this schedule:
</p>
<ul
v-if=
"loaded.scheduleTimeslots"
>
<li
v-for=
"slot in scheduleTimeslots"
...
...
@@ -256,6 +256,7 @@ export default {
}).
then
(
response
=>
{
this
.
schedule
=
response
.
data
this
.
loaded
.
schedule
=
true
this
.
loadScheduleTimeslots
(
this
.
schedule
.
id
)
}).
catch
(
error
=>
{
this
.
$log
.
error
(
error
.
response
.
status
+
'
'
+
error
.
response
.
statusText
)
this
.
$log
.
error
(
error
.
response
)
...
...
@@ -266,6 +267,7 @@ export default {
loadScheduleTimeslots
(
id
)
{
this
.
loaded
.
scheduleTimeslots
=
false
let
uri
=
process
.
env
.
VUE_APP_API_STEERING
+
'
shows/
'
+
this
.
show
.
id
+
'
/schedules/
'
+
id
+
'
/timeslots/
'
uri
+=
'
?start=
'
+
this
.
schedule
.
dstart
+
'
&end=
'
+
this
.
schedule
.
until
axios
.
get
(
uri
,
{
withCredentials
:
true
,
headers
:
{
'
Authorization
'
:
'
Bearer
'
+
this
.
$parent
.
$parent
.
user
.
access_token
}
...
...
@@ -286,7 +288,6 @@ export default {
this
.
loaded
.
modal
=
true
this
.
$refs
.
modalEmissionManagerEdit
.
show
()
this
.
loadSchedule
(
timeslot
.
schedule
)
this
.
loadScheduleTimeslots
(
timeslot
.
schedule
)
},
notYetImplemented
:
function
()
{
...
...
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