Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Commits on Source (2)
(fix): Upvotes do not appear to have worked until you refresh
· 42b053e1
Marcelo Rivera
authored
Oct 15, 2019
and
Mark Harding
committed
Oct 15, 2019
42b053e1
Merge branch 'fix/disappearing-thumbs-2072' into 'epic/pro-affiliate-launch'
· d9a25209
Mark Harding
authored
Oct 15, 2019
(fix): Upvotes do not appear to have worked until you refresh See merge request
!584
d9a25209
Hide whitespace changes
Inline
Side-by-side
src/app/modules/media/modal/modal.component.html
View file @
d9a25209
...
...
@@ -287,17 +287,19 @@
<div
class=
"m-mediaModal__actionButtonsWrapper"
>
<div
class=
"m-mediaModal__actionButtonsRow m-action-tabs"
>
<minds-button-thumbs-up
[object]=
"
e
ntity"
[object]=
"
originalE
ntity"
></minds-button-thumbs-up>
<minds-button-thumbs-down
[object]=
"
e
ntity"
[object]=
"
originalE
ntity"
></minds-button-thumbs-down>
<m-wire-button
*ngIf=
"session.getLoggedInUser().guid != entity.owner_guid"
[object]=
"entity"
(done)=
"wireSubmitted($event)"
></m-wire-button>
<minds-button-remind
[object]=
"entity"
></minds-button-remind>
<minds-button-remind
[object]=
"originalEntity"
></minds-button-remind>
</div>
</div>
...
...
src/app/modules/media/modal/modal.component.ts
View file @
d9a25209
...
...
@@ -67,6 +67,7 @@ export class MediaModalComponent implements OnInit, OnDestroy {
minds
=
window
.
Minds
;
entity
:
any
=
{};
originalEntity
:
any
=
null
;
redirectUrl
:
string
;
isLoading
:
boolean
=
true
;
navigatedAway
:
boolean
=
false
;
...
...
@@ -109,6 +110,7 @@ export class MediaModalComponent implements OnInit, OnDestroy {
routerSubscription
:
Subscription
;
@
Input
(
'
entity
'
)
set
data
(
params
:
MediaModalParams
)
{
this
.
originalEntity
=
params
.
entity
;
this
.
entity
=
params
.
entity
&&
JSON
.
parse
(
JSON
.
stringify
(
params
.
entity
));
// deep clone
this
.
redirectUrl
=
params
.
redirectUrl
||
null
;
}
...
...