]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] List attachments in boost modal
authorThibG <thib@sitedethib.com>
Thu, 13 Jun 2019 15:04:52 +0000 (17:04 +0200)
committerThibaut Girka <thib@sitedethib.com>
Thu, 13 Jun 2019 20:28:51 +0000 (22:28 +0200)
Port dd45c63921f6f64096fa6a1693cc84d6aa33c54f to glitch-soc

app/javascript/flavours/glitch/features/ui/components/boost_modal.js

index 81bd1e57653fa2c38a11314c22a9aed20aca9636..600e4422f166cebcdc3efabc4e9fe9bd8299089f 100644 (file)
@@ -7,6 +7,7 @@ import StatusContent from 'flavours/glitch/components/status_content';
 import Avatar from 'flavours/glitch/components/avatar';
 import RelativeTimestamp from 'flavours/glitch/components/relative_timestamp';
 import DisplayName from 'flavours/glitch/components/display_name';
+import AttachmentList from 'flavours/glitch/components/attachment_list';
 import ImmutablePureComponent from 'react-immutable-pure-component';
 
 const messages = defineMessages({
@@ -75,6 +76,13 @@ export default class BoostModal extends ImmutablePureComponent {
             </div>
 
             <StatusContent status={status} />
+
+            {status.get('media_attachments').size > 0 && (
+              <AttachmentList
+                compact
+                media={status.get('media_attachments')}
+              />
+            )}
           </div>
         </div>