summaryrefslogtreecommitdiff
path: root/client/containers/fileLink.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2017-07-20 17:56:19 +0200
committerJules Laplace <julescarbon@gmail.com>2017-07-20 17:56:19 +0200
commitd02cbad01f3abfa8a1aad0b55b8bd9cf544090cf (patch)
tree0ea170b764e5aad2713c6ed9429729579cc69a63 /client/containers/fileLink.js
parente9c0ffcd5d58310c6cff6a5a73bdf6062485eba4 (diff)
disabled links
Diffstat (limited to 'client/containers/fileLink.js')
-rw-r--r--client/containers/fileLink.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/containers/fileLink.js b/client/containers/fileLink.js
index cb55c1c..92933cf 100644
--- a/client/containers/fileLink.js
+++ b/client/containers/fileLink.js
@@ -3,6 +3,8 @@ import { audioPlayFile } from '../actions'
import Link from '../components/UI/Link.jsx'
const mapStateToProps = (state, ownProps) => ({
+ children: ownProps.children || ownProps.file ? ownProps.file.name : "(~)",
+ disabled: ownProps.disabled || ! ownProps.file
})
const mapDispatchToProps = (dispatch, ownProps) => ({