mirror of
https://github.com/backnotprop/plannotator.git
synced 2026-09-14 14:17:26 +08:00
3b83557356
Stop added annotations from forcing the annotation panel open, and keep dirty annotation comment popovers open on outside click so typed feedback is not lost.
9 lines
220 B
TypeScript
9 lines
220 B
TypeScript
import type { ImageAttachment } from "../types";
|
|
|
|
export function hasUnsavedCommentContent(
|
|
text: string,
|
|
images: readonly ImageAttachment[] = [],
|
|
): boolean {
|
|
return text.trim().length > 0 || images.length > 0;
|
|
}
|