new content notification working for client brief

This commit is contained in:
isUnknown 2024-11-22 09:20:38 +01:00
parent 8ae00d7657
commit c1d2c73118
9 changed files with 277 additions and 70 deletions

View file

@ -12,7 +12,8 @@
<template #header>
<button
v-if="
dialog.content.id === 'clientBrief' && !dialog.content?.isValidated
dialog.content.id === 'clientBrief' &&
dialog.content.isValidated !== true
"
class="btn"
@click="validate()"
@ -191,8 +192,15 @@ function showDraftMarker(draftComment) {
}
async function validate() {
const response = await api.validateBrief(route.path + "/client-brief");
dialog.content.isValidated = true;
const response = await api.validateBrief(
route.path + "/client-brief",
route.fullPath
);
if (response.success) {
dialog.content.isValidated = true;
} else {
console.alert(response);
}
}
</script>