mirror of
https://github.com/JanGross/quicknotes.git
synced 2025-11-30 23:37:16 +01:00
Open attachment when click thumbnail on modal
This commit is contained in:
@@ -11,11 +11,16 @@ class Attach extends Entity implements JsonSerializable {
|
||||
protected $fileId;
|
||||
protected $createdAt;
|
||||
protected $previewUrl;
|
||||
protected $redirectUrl;
|
||||
|
||||
public function setPreviewUrl($previewUrl) {
|
||||
$this->previewUrl = $previewUrl;
|
||||
}
|
||||
|
||||
public function setRedirectUrl($redirectUrl) {
|
||||
$this->redirectUrl = $redirectUrl;
|
||||
}
|
||||
|
||||
public function jsonSerialize() {
|
||||
return [
|
||||
'id' => $this->id,
|
||||
@@ -23,6 +28,7 @@ class Attach extends Entity implements JsonSerializable {
|
||||
'file_id' => $this->fileId,
|
||||
'created_at' => $this->createdAt,
|
||||
'preview_url' => $this->previewUrl,
|
||||
'redirect_url' => $this->redirectUrl
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user