#88 - edit comment fonctional but not styled
This commit is contained in:
parent
ea2817244b
commit
6cc8325d2b
5 changed files with 102 additions and 23 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue