#88 - edit comment fonctional but not styled

This commit is contained in:
isUnknown 2025-01-07 15:19:50 +01:00
parent ea2817244b
commit 6cc8325d2b
5 changed files with 102 additions and 23 deletions

View file

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