Add a small button for downloading ics attachments to the event preview #1547

This commit is contained in:
Ben Gotow 2019-06-30 20:48:13 -05:00
parent 9d1b8fe600
commit 3ab9b0edf1
2 changed files with 13 additions and 0 deletions

View file

@ -129,6 +129,9 @@ export class EventHeader extends React.Component<EventHeaderProps, EventHeaderSt
return (
<div className="event-wrapper">
<div className="event-header">
<div className="event-download" onClick={() => Actions.fetchAndOpenFile(this.props.file)}>
<RetinaImg name="icon-attachment-download.png" mode={RetinaImg.Mode.ContentIsMask} />
</div>
<RetinaImg name="icon-RSVP-calendar-mini@2x.png" mode={RetinaImg.Mode.ContentPreserve} />
<span className="event-title-text">{localized('Event')}: </span>
<span className="event-title">{icsEvent.summary}</span>

View file

@ -31,6 +31,16 @@
.event-title {
color: @text-color;
}
.event-download {
float: right;
border-radius: @border-radius-base;
border: 1px solid @border-color-divider;
padding: 0px 4px;
img {
background: @text-color-very-subtle;
margin: 0;
}
}
}
.event-body {