comments: show resolved comments on start

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: If0ea8c1e74581dacb1461af549336a8ae676230e
pull/3631/head
Szymon Kłos 2021-11-15 16:09:28 +01:00 committed by Andras Timar
parent eb7156061e
commit 50ab7c21fa
1 changed files with 5 additions and 0 deletions

View File

@ -92,6 +92,11 @@ class CommentSection {
this.map.on('AnnotationScrollUp', this.onAnnotationScrollUp, this);
this.map.on('AnnotationScrollDown', this.onAnnotationScrollDown, this);
this.map.on('commandstatechanged', function (event: any) {
if (event.commandName === '.uno:ShowResolvedAnnotations')
this.setViewResolved(event.state === 'true');
}, this);
this.map.on('zoomend', function() {
this.map.fire('mobilewizardpopupclose');
this.checkCollapseState();