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
350
Merge Requests
60
CI / CD
Security & Compliance
Packages
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Compare Revisions
2c6a2abbc23a43def7faad8fcb404b116e2ddb40...144389d724a19738df0dd73eb98b738155300d7b
Source
144389d724a19738df0dd73eb98b738155300d7b
...
Target
2c6a2abbc23a43def7faad8fcb404b116e2ddb40
Compare
Commits (2)
(fix): Re-set correct url when closing media modal after navigating
· 77c2ee0c
Emiliano Balbuena
authored
1 hour ago
77c2ee0c
(fix): Set correct blog permalink
· 144389d7
Emiliano Balbuena
authored
1 hour ago
144389d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
src/app/modules/media/modal/modal.component.ts
View file @
144389d7
...
...
@@ -231,9 +231,6 @@ export class MediaModalComponent implements OnInit, OnDestroy {
if
(
!
this
.
nextEntity
)
{
this
.
nextEntity
=
next
;
}
console
.
log
(
'
prevEntity
'
,
this
.
prevEntity
);
console
.
log
(
'
nextEntity
'
,
this
.
nextEntity
);
}
load
()
{
...
...
@@ -336,6 +333,8 @@ export class MediaModalComponent implements OnInit, OnDestroy {
this
.
pageUrl
=
this
.
redirectUrl
;
}
else
if
(
this
.
contentType
===
'
rich-embed
'
)
{
this
.
pageUrl
=
`/newsfeed/
${
this
.
entity
.
guid
}
`
;
}
else
if
(
this
.
contentType
===
'
blog
'
)
{
this
.
pageUrl
=
`/
${
this
.
entity
.
ownerObj
.
username
}
/blog/
${
this
.
entity
.
slug
}
-
${
this
.
entity
.
guid
}
`
;
}
else
{
this
.
pageUrl
=
`/media/
${
this
.
entity
.
entity_guid
}
`
;
}
...
...
@@ -664,21 +663,23 @@ export class MediaModalComponent implements OnInit, OnDestroy {
goToNext
():
void
{
const
entity
=
this
.
nextEntity
;
entity
.
modal_source_url
=
this
.
entity
.
modal_source_url
||
''
;
this
.
prevEntity
=
this
.
originalEntity
;
this
.
nextEntity
=
null
;
this
.
setEntity
(
entity
/* , redirectUrl */
);
this
.
setEntity
(
entity
);
this
.
load
();
}
goToPrev
():
void
{
const
entity
=
this
.
prevEntity
;
entity
.
modal_source_url
=
this
.
entity
.
modal_source_url
||
''
;
this
.
prevEntity
=
null
;
this
.
nextEntity
=
this
.
originalEntity
;
this
.
setEntity
(
entity
/* , redirectUrl */
);
this
.
setEntity
(
entity
);
this
.
load
();
}
...
...
This diff is collapsed.