comments working
This commit is contained in:
parent
375bed1d01
commit
0b472988a2
14 changed files with 107 additions and 59 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import { defineStore } from "pinia";
|
||||
import { defineStore, storeToRefs } from "pinia";
|
||||
import { usePageStore } from "./page.js";
|
||||
import uniqid from "uniqid";
|
||||
|
||||
export const useApiStore = defineStore("api", () => {
|
||||
|
|
@ -142,11 +143,17 @@ export const useApiStore = defineStore("api", () => {
|
|||
}
|
||||
}
|
||||
|
||||
async function readNotification(comment) {
|
||||
/**
|
||||
*
|
||||
* @param {string} comment
|
||||
* @param {string} projectId UUID or URI
|
||||
* @returns status with message if error
|
||||
*/
|
||||
async function readNotification(comment, projectId) {
|
||||
const headers = {
|
||||
method: "POST",
|
||||
body: JSON.stringify({
|
||||
projectUuid: comment.location.project.uuid,
|
||||
projectId,
|
||||
notificationId: comment.id,
|
||||
}),
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue