diff options
author | Claire <claire.github-309c@sitedethib.com> | 2021-07-25 01:13:46 +0200 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2021-07-25 12:51:33 +0200 |
commit | 08139d3cd72f28b7c4199f1123ab149651800f2c (patch) | |
tree | e27b5a0c535e6fefd2e20f6cdb404ab8f59cc2b6 /app/javascript/flavours/glitch/features/picture_in_picture | |
parent | b5e10d07ff756ab4f4101c8ee356caff92852e22 (diff) |
[Glitch] Fix “open” link of media modal not closing modal
Port af08229ff43cf61b6b3eb386ca9d6205d05dc295 to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours/glitch/features/picture_in_picture')
-rw-r--r-- | app/javascript/flavours/glitch/features/picture_in_picture/components/footer.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/features/picture_in_picture/components/footer.js b/app/javascript/flavours/glitch/features/picture_in_picture/components/footer.js index fcb2df527..98d1f40b2 100644 --- a/app/javascript/flavours/glitch/features/picture_in_picture/components/footer.js +++ b/app/javascript/flavours/glitch/features/picture_in_picture/components/footer.js @@ -116,7 +116,11 @@ class Footer extends ImmutablePureComponent { return; } - const { status } = this.props; + const { status, onClose } = this.props; + + if (onClose) { + onClose(); + } router.history.push(`/statuses/${status.get('id')}`); } |