Skip to content

Commit ff6fd62

Browse files
authored
Merge pull request #765 from asmsuechan/iss-758
iss #758 Add InfoButton and InfoPanel in Trash
2 parents 8df8670 + 7672844 commit ff6fd62

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

browser/main/Detail/MarkdownNoteDetail.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,18 @@ class MarkdownNoteDetail extends React.Component {
297297
</div>
298298
<div styleName='info-right'>
299299
<TrashButton onClick={(e) => this.handleTrashButtonClick(e)} />
300+
<InfoButton
301+
onClick={(e) => this.handleInfoButtonClick(e)}
302+
/>
303+
<InfoPanel
304+
storageName={currentOption.storage.name}
305+
folderName={currentOption.folder.name}
306+
noteLink={`[${note.title}](${location.query.key})`}
307+
updatedAt={formatDate(note.updatedAt)}
308+
createdAt={formatDate(note.createdAt)}
309+
exportAsMd={this.exportAsMd}
310+
exportAsTxt={this.exportAsTxt}
311+
/>
300312
</div>
301313
</div>
302314

browser/main/Detail/SnippetNoteDetail.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,18 @@ class SnippetNoteDetail extends React.Component {
556556
</div>
557557
<div styleName='info-right'>
558558
<TrashButton onClick={(e) => this.handleTrashButtonClick(e)} />
559+
<InfoButton
560+
onClick={(e) => this.handleInfoButtonClick(e)}
561+
/>
562+
<InfoPanel
563+
storageName={currentOption.storage.name}
564+
folderName={currentOption.folder.name}
565+
noteLink={`[${note.title}](${location.query.key})`}
566+
updatedAt={formatDate(note.updatedAt)}
567+
createdAt={formatDate(note.createdAt)}
568+
exportAsMd={this.showWarning}
569+
exportAsTxt={this.showWarning}
570+
/>
559571
</div>
560572
</div>
561573

0 commit comments

Comments
 (0)