From e7e6194cac2a3e18cf1bea1eff21cadd42b2ca06 Mon Sep 17 00:00:00 2001 From: sota1235 Date: Thu, 29 Dec 2016 16:15:56 +0900 Subject: [PATCH] modify: not showing the star on the note-list component when using the simple mode --- browser/main/NoteList/index.js | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/browser/main/NoteList/index.js b/browser/main/NoteList/index.js index 11569a8a..c6618ff8 100644 --- a/browser/main/NoteList/index.js +++ b/browser/main/NoteList/index.js @@ -327,6 +327,7 @@ class NoteList extends React.Component { }) : [] let isActive = location.query.key === note.storage + '-' + note.key + const isDefault = config.listStyle === 'DEFAULT' return (
this.handleNoteClick(e, note.storage + '-' + note.key)} onContextMenu={(e) => this.handleNoteContextMenu(e, note.storage + '-' + note.key)} > - {config.listStyle === 'DEFAULT' && + {isDefault &&
{moment(config.sortBy === 'CREATED_AT' ? note.createdAt : note.updatedAt).fromNow()}
@@ -349,7 +350,7 @@ class NoteList extends React.Component { }
- {config.listStyle === 'DEFAULT' && + {isDefault &&
{tagElements.length > 0 @@ -360,12 +361,14 @@ class NoteList extends React.Component {
} - + {isDefault && + + }
) })