#88 - fix edit comment system

This commit is contained in:
isUnknown 2025-01-07 16:05:10 +01:00
parent dd6eff2904
commit 12562ed8da
3 changed files with 10 additions and 11 deletions

View file

@ -121,8 +121,9 @@ dayjs.locale("fr");
const { user } = useUserStore();
const { page } = usePageStore();
const dialog = useDialogStore();
const { comments, openedFile, draftComment, activeTracks, isEditCommentMode } =
storeToRefs(useDialogStore());
const { comments, openedFile, draftComment, activeTracks } = storeToRefs(
useDialogStore()
);
const api = useApiStore();
const openedComment = ref(null);
@ -304,7 +305,7 @@ function prepareDraftCommentInImage(event) {
}
function openComment(comment) {
if (isEditCommentMode.value) return;
if (comment.isEditMode) return;
openedComment.value = comment;