From f026ed6db6f45b845b1f39ef7214c4b20aea647a Mon Sep 17 00:00:00 2001 From: btzr-io Date: Mon, 18 Jun 2018 12:18:25 -0600 Subject: [PATCH] fix playable logic - Add new icon Eye - Show preview button --- .../component/video/internal/play-button.jsx | 4 ++-- src/renderer/constants/icons.js | 1 + src/renderer/page/file/view.jsx | 18 +++++++++--------- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/src/renderer/component/video/internal/play-button.jsx b/src/renderer/component/video/internal/play-button.jsx index dcc30e8cc..86dbbb62e 100644 --- a/src/renderer/component/video/internal/play-button.jsx +++ b/src/renderer/component/video/internal/play-button.jsx @@ -14,8 +14,8 @@ class VideoPlayButton extends React.PureComponent { const { fileInfo, mediaType, isLoading, play } = this.props; const disabled = isLoading || fileInfo === undefined; const doesPlayback = ['audio', 'video'].indexOf(mediaType) !== -1; - const icon = doesPlayback ? 'Play' : 'Folder'; - const label = doesPlayback ? 'Play' : 'View'; + const icon = doesPlayback ? 'Play' : 'Eye'; + const label = doesPlayback ? 'Play' : 'Preview'; return