Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Frontend
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
405
Merge Requests
66
CI / CD
Security & Compliance
Packages
Analytics
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
319a9bff
Commit
319a9bff
authored
21 minutes ago
by
Ben Hayward
Browse files
Options
Download
Removed arrow functions
parent
08af3266
fix/premature-posting-2418
1 merge request
!774
Posting before rich-embed completed shows unwanted attachment in new comment underneath #2418
Pipeline
#117039621
running with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
src/app/services/attachment.ts
View file @
319a9bff
...
...
@@ -360,18 +360,26 @@ export class AttachmentService {
/**
* Resets preview requests to null.
*/
resetPreviewRequests
=
():
string
[]
=>
(
this
.
previewRequests
=
[]);
resetPreviewRequests
():
AttachmentService
{
this
.
previewRequests
=
[];
return
this
;
}
/**
* Returns preview requests.
*/
getPreviewRequests
=
():
string
[]
=>
this
.
previewRequests
;
getPreviewRequests
():
string
[]
{
return
this
.
previewRequests
;
}
/**
* Adds a new preview request.
* @param { string } url -
*/
addPreviewRequest
=
(
url
:
string
):
number
=>
this
.
previewRequests
.
push
(
url
);
addPreviewRequest
(
url
:
string
):
AttachmentService
{
this
.
previewRequests
.
push
(
url
);
return
this
;
}
/**
* Gets attachment preview from content.
...
...
This diff is collapsed.
Please
register
or
sign in
to comment