summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2024-05-28 09:54:35 -0400
committerHenry Castro <hcastro@collabora.com>2024-05-28 09:58:47 -0400
commit18163d8091aedef5fd58f8280fe087e0391a9cce (patch)
tree5e8907c5508bfe4dec86ac00f1679245a0d7af06
parentadd AutoFill contextmenu items (diff)
downloadonline-pr/master/6C.tar.gz
online-pr/master/6C.zip
browser: fix removing new comment pr/master/6C
1) User1 start resizing row/column 2) User2 create a new annotation 3) User1 finish resizing row/column 4) Server update comment position 5) User2 new annotation is hidden if comment is new, do not hide when updating new comment data. Change-Id: I593dff167f75cc3dc451467a7d76a09f94a3a556 Signed-off-by: Henry Castro <hcastro@collabora.com>
-rw-r--r--browser/src/canvas/sections/CommentListSection.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/browser/src/canvas/sections/CommentListSection.ts b/browser/src/canvas/sections/CommentListSection.ts
index b7fd80efd4..0ca510ba61 100644
--- a/browser/src/canvas/sections/CommentListSection.ts
+++ b/browser/src/canvas/sections/CommentListSection.ts
@@ -2114,7 +2114,7 @@ export class CommentSection extends app.definitions.canvasSectionObject {
public onCommentsDataUpdate(): void {
for (var i: number = this.sectionProperties.commentList.length -1; i > -1; i--) {
var comment = this.sectionProperties.commentList[i];
- if (!comment.valid) {
+ if (!comment.valid && comment.sectionProperties.data.id !== 'new') {
comment.sectionProperties.commentListSection.removeItem(comment.sectionProperties.data.id);
}
comment.onCommentDataUpdate();