diff --git a/public/content/projects/1_miss-dior-blooming-bouquet/1_client-brief/38969543_extrait-de-louis-sullivan-form-follow-function.-de-la-tour-de-bureaux-artistiquement-consideree.pdf.txt b/public/content/projects/1_miss-dior-blooming-bouquet/1_client-brief/38969543_extrait-de-louis-sullivan-form-follow-function.-de-la-tour-de-bureaux-artistiquement-consideree.pdf.txt index cc8a950..cb27a3c 100644 --- a/public/content/projects/1_miss-dior-blooming-bouquet/1_client-brief/38969543_extrait-de-louis-sullivan-form-follow-function.-de-la-tour-de-bureaux-artistiquement-consideree.pdf.txt +++ b/public/content/projects/1_miss-dior-blooming-bouquet/1_client-brief/38969543_extrait-de-louis-sullivan-form-follow-function.-de-la-tour-de-bureaux-artistiquement-consideree.pdf.txt @@ -6,31 +6,4 @@ Uuid: s0lNtRA0Z7ybTCWG ---- -Template: document - ----- - -Comments: - -1: - m2lmqu2u: - text: test - username: Adrien Payet - date: 2024-10-23T10:46:08+02:00 - m2lo4obv: - text: nouveau commentaire - username: Adrien Payet - date: 2024-10-23T11:24:53+02:00 - m2lo6ckw: - text: Encore un autre commentaire - username: Adrien Payet - date: 2024-10-23T11:26:11+02:00 -2: - m2loaj2f: - text: Autre commentaire - username: Adrien Payet - date: 2024-10-23T11:29:26+02:00 - m2loam7s: - text: Autre commentaire - username: Adrien Payet - date: 2024-10-23T11:29:30+02:00 \ No newline at end of file +Template: document \ No newline at end of file diff --git a/public/site/blueprints/users/admin.yml b/public/site/blueprints/users/admin.yml index 4843c22..984dd65 100644 --- a/public/site/blueprints/users/admin.yml +++ b/public/site/blueprints/users/admin.yml @@ -1 +1,5 @@ -title: Admin \ No newline at end of file +title: Admin + +fields: + notifications: + type: hidden diff --git a/public/site/blueprints/users/client.yml b/public/site/blueprints/users/client.yml index 6fce1a6..49210db 100644 --- a/public/site/blueprints/users/client.yml +++ b/public/site/blueprints/users/client.yml @@ -8,3 +8,5 @@ fields: type: pages max: 1 query: page('clients').children + notifications: + type: hidden diff --git a/public/site/blueprints/users/project-manager.yml b/public/site/blueprints/users/project-manager.yml index de6f987..16a2a13 100644 --- a/public/site/blueprints/users/project-manager.yml +++ b/public/site/blueprints/users/project-manager.yml @@ -1,3 +1,7 @@ -title: +title: fr: Chef·fe de projet - en: Project Manager \ No newline at end of file + en: Project Manager + +fields: + notifications: + type: hidden diff --git a/public/site/config/routes/add-comment.php b/public/site/config/routes/add-comment.php index 0a69530..a210107 100644 --- a/public/site/config/routes/add-comment.php +++ b/public/site/config/routes/add-comment.php @@ -18,7 +18,7 @@ return [ $comments[$data->targetPage][$data->id] = [ 'text' => $data->text, - 'username' => (string) $user->name(), + 'username' => $user->name()->isNotEmpty() ? (string) $user->name() : (string) $user->email(), 'date' => (string) $data->date, ]; @@ -27,6 +27,6 @@ return [ 'comments' => $comments ]); - return $comments; + return getFileData($newFile); } ]; \ No newline at end of file diff --git a/src/components/comments/Comments.vue b/src/components/comments/Comments.vue index 647fdad..dd6cc65 100644 --- a/src/components/comments/Comments.vue +++ b/src/components/comments/Comments.vue @@ -2,10 +2,7 @@