#88 - fix edit comment system
This commit is contained in:
parent
dd6eff2904
commit
12562ed8da
3 changed files with 10 additions and 11 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue