Merge pull request #3686 from emanuelschuetze/resetScrollLevel
Reset scroll level for each new projection.
This commit is contained in:
commit
272552055c
@ -124,6 +124,7 @@ Core:
|
|||||||
- Added --debug-email flag to print all emails to stdout [#3530].
|
- Added --debug-email flag to print all emails to stdout [#3530].
|
||||||
- Added --no-template-caching flag to disable template caching for
|
- Added --no-template-caching flag to disable template caching for
|
||||||
easier development [#3566].
|
easier development [#3566].
|
||||||
|
- Reset scroll level for each new projection [#3686].
|
||||||
|
|
||||||
Mediafiles:
|
Mediafiles:
|
||||||
- New form for uploading multiple files [#3650].
|
- New form for uploading multiple files [#3650].
|
||||||
|
@ -272,6 +272,10 @@ class ProjectorViewSet(ModelViewSet):
|
|||||||
raise ValidationError({'detail': 'Data must be a list.'})
|
raise ValidationError({'detail': 'Data must be a list.'})
|
||||||
|
|
||||||
projector_instance = self.get_object()
|
projector_instance = self.get_object()
|
||||||
|
# reset scroll level
|
||||||
|
if (projector_instance.scroll != 0):
|
||||||
|
projector_instance.scroll = 0
|
||||||
|
projector_instance.save()
|
||||||
projector_config = {}
|
projector_config = {}
|
||||||
for key, value in projector_instance.config.items():
|
for key, value in projector_instance.config.items():
|
||||||
if value.get('stable'):
|
if value.get('stable'):
|
||||||
|
Loading…
Reference in New Issue
Block a user