mirror of
https://github.com/JanGross/quicknotes.git
synced 2026-12-01 02:17:00 +01:00
Open attachment when click thumbnail on modal
This commit is contained in:
1 parent
536773843f
commit
5eaf25dfcd
6 files changed
+71
-28
No files matched your search
@@ -128,6 +128,7 @@ class NoteController extends Controller {
|
||||
$attachts = $this->attachMapper->findFromNote($this->userId, $note->getId());
|
||||
foreach ($attachts as $attach) {
|
||||
$attach->setPreviewUrl($this->fileService->getPreviewUrl($attach->getFileId(), 512));
|
||||
$attach->setRedirectUrl($this->fileService->getRedirectToFileUrl($attach->getFileId()));
|
||||
}
|
||||
$note->setAttachts($attachts);
|
||||
}
|
||||
@@ -299,6 +300,7 @@ class NoteController extends Controller {
|
||||
$attachts = $this->attachMapper->findFromNote($this->userId, $newnote->getId());
|
||||
foreach ($attachts as $attach) {
|
||||
$attach->setPreviewUrl($this->fileService->getPreviewUrl($attach->getFileId(), 512));
|
||||
$attach->setRedirectUrl($this->fileService->getRedirectToFileUrl($attach->getFileId()));
|
||||
}
|
||||
$newnote->setAttachts($attachts);
|
||||
|
||||
|
||||
Reference in new issue
Block a user