diff options
author | beatrix <beatrix.bitrot@gmail.com> | 2018-05-07 09:45:13 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-07 09:45:13 -0400 |
commit | 919e2098cb7c2ff30e19ab4f4e4c8ec9506d230d (patch) | |
tree | 0dd0ccf54c9def4b941adf684d01be66cf48fd35 /app/javascript/flavours/glitch/components/media_gallery.js | |
parent | 2eb924c00ca9fdf4cd37e7be339337a7fdf4ea23 (diff) | |
parent | 658ac4396cf1b7cab034701082645747c39f7af2 (diff) |
Merge pull request #468 from ThibG/glitch-soc/features/reports-improvements
Various improvements to the reports modal
Diffstat (limited to 'app/javascript/flavours/glitch/components/media_gallery.js')
-rw-r--r-- | app/javascript/flavours/glitch/components/media_gallery.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/components/media_gallery.js b/app/javascript/flavours/glitch/components/media_gallery.js index 925132b07..7f5150f7b 100644 --- a/app/javascript/flavours/glitch/components/media_gallery.js +++ b/app/javascript/flavours/glitch/components/media_gallery.js @@ -202,6 +202,7 @@ export default class MediaGallery extends React.PureComponent { static propTypes = { sensitive: PropTypes.bool, + revealed: PropTypes.bool, standalone: PropTypes.bool, letterbox: PropTypes.bool, fullwidth: PropTypes.bool, @@ -216,7 +217,7 @@ export default class MediaGallery extends React.PureComponent { }; state = { - visible: !this.props.sensitive || displaySensitiveMedia, + visible: this.props.revealed === undefined ? (!this.props.sensitive || displaySensitiveMedia) : this.props.revealed, }; componentWillReceiveProps (nextProps) { |