1
0
mirror of https://github.com/BoostIo/Boostnote synced 2026-02-07 13:01:40 +00:00

Add exports to infoPanel

This commit is contained in:
asmsuechan
2017-07-15 19:33:58 +09:00
parent b21baf1ce5
commit 6ea2b5e1d9
4 changed files with 37 additions and 3 deletions

View File

@@ -175,6 +175,14 @@ class MarkdownNoteDetail extends React.Component {
}
exportAsMd () {
ee.emit('export:save-md')
}
exportAsTxt () {
ee.emit('export:save-text')
}
handleTrashButtonClick (e) {
let { note } = this.state
const { isTrashed } = note
@@ -352,6 +360,8 @@ class MarkdownNoteDetail extends React.Component {
noteLink={`[title](${location.query.key})`}
updatedAt={formatDate(note.updatedAt)}
createdAt={formatDate(note.createdAt)}
exportAsMd={this.exportAsMd}
exportAsTxt={this.exportAsTxt}
/>
</div>
</div>