comment 360 working
This commit is contained in:
parent
bc0ae8861f
commit
4daaa3dc88
8 changed files with 134 additions and 91 deletions
|
|
@ -202,6 +202,10 @@ async function replyComment(newComment) {
|
|||
}
|
||||
|
||||
async function addComment(newComment) {
|
||||
const matchFileParentUri = openedFile.value.url.match(
|
||||
/projects\/.*?(?=\/[^/]+\/[^/]+$)/
|
||||
);
|
||||
newComment.fileParentUri = matchFileParentUri ? matchFileParentUri[0] : null;
|
||||
const newFile = await api.addComment(newComment);
|
||||
resetDraftComment();
|
||||
isAddOpen.value = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue