Use a different icon for audio attachments

master
Thibaut Girka 5 years ago
parent d7eb580053
commit 598cdc9542
  1. 2
      app/javascript/flavours/glitch/components/status.js
  2. 2
      app/javascript/flavours/glitch/features/status/components/detailed_status.js

@ -544,7 +544,7 @@ export default class Status extends ImmutablePureComponent {
/>)}
</Bundle>
);
mediaIcon = 'video-camera';
mediaIcon = attachment.get('type') === 'video' ? 'video-camera' : 'music';
} else { // Media type is 'image' or 'gifv'
media = (
<Bundle fetchComponent={MediaGallery} loading={this.renderLoadingMediaGallery}>

@ -150,7 +150,7 @@ export default class DetailedStatus extends ImmutablePureComponent {
onToggleVisibility={this.props.onToggleMediaVisibility}
/>
);
mediaIcon = 'video-camera';
mediaIcon = attachment.get('type') === 'video' ? 'video-camera' : 'music';
} else {
media = (
<MediaGallery

Loading…
Cancel
Save