read content notification on click

This commit is contained in:
isUnknown 2025-01-15 15:36:43 +01:00
parent 1fae3dd414
commit 495e1c024e
7 changed files with 25 additions and 16 deletions

View file

@ -13,7 +13,10 @@
class="btn | ml-auto"
@click="validate"
v-if="page.content.isvalidated != 'true'"
:disabled="page.files.length === 0"
:disabled="page.moodboard.length === 0"
:title="
page.moodboard.length === 0 ? 'Ajoutez au moins une image' : undefined
"
>
Valider et envoyer le brief
</button>

View file

@ -129,7 +129,7 @@ function getHref(notification) {
const isDocumentBrief =
notification.location.page.template === "client-brief" &&
notification.location?.file.type === "document";
notification.location?.file?.type === "document";
if (isDocumentBrief) {
return notification.project.uri + "?dialog=client-brief&comments=true";