dynamize notifications view
This commit is contained in:
parent
8ed7331b61
commit
c099e0d5ac
6 changed files with 127 additions and 132 deletions
|
|
@ -15,9 +15,14 @@ return [
|
|||
$comments = $file->comments()->isEmpty() == true ? [] : Yaml::decode($file->comments()->value());
|
||||
|
||||
$newComment = [
|
||||
'pageUri' => $data->pageUri,
|
||||
'fileUuid' => (string) $file->uuid(),
|
||||
'filePageIndex' => $data->filePageIndex,
|
||||
'page' => [
|
||||
'uri' => (string) $page->parent()->uri(),
|
||||
'title' => (string) $page->parent()->title(),
|
||||
],
|
||||
'file' => [
|
||||
'uuid' => (string) $file->uuid(),
|
||||
'pageIndex' => $data->filePageIndex,
|
||||
],
|
||||
'text' => $data->text,
|
||||
'user' => [
|
||||
'name' => (string) $user->name(),
|
||||
|
|
@ -27,6 +32,7 @@ return [
|
|||
],
|
||||
'date' => (string) $data->date,
|
||||
'id' => $data->id,
|
||||
'type' => 'comment'
|
||||
];
|
||||
|
||||
$comments[$data->parentId]['replies'][$data->id] = $newComment;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue