new content notification working for client brief
This commit is contained in:
parent
8ae00d7657
commit
c1d2c73118
9 changed files with 277 additions and 70 deletions
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue