{title}
- { !this.props.hidePrice ? : null}
+ { !hidePrice ? : null}
@@ -82,11 +94,7 @@ class FileCardStream extends React.Component {
}
-
- {isConfirmed
- ? metadata.description
- : This file is pending confirmation.}
-
+ {description}
{this.state.showNsfwHelp && this.state.hovered
diff --git a/ui/js/component/fileTileStream/index.js b/ui/js/component/fileTileStream/index.js
index d212dfdae..faf50f08b 100644
--- a/ui/js/component/fileTileStream/index.js
+++ b/ui/js/component/fileTileStream/index.js
@@ -20,6 +20,9 @@ import {
import {
selectObscureNsfw,
} from 'selectors/app'
+import {
+ makeSelectResolvingUri,
+} from 'selectors/content'
import FileTileStream from './view'
const makeSelect = () => {
@@ -29,6 +32,7 @@ const makeSelect = () => {
const selectAvailabilityForUri = makeSelectAvailabilityForUri()
const selectMetadataForUri = makeSelectMetadataForUri()
const selectSourceForUri = makeSelectSourceForUri()
+ const selectResolvingUri = makeSelectResolvingUri()
const select = (state, props) => ({
claim: selectClaimForUri(state, props),
@@ -38,6 +42,7 @@ const makeSelect = () => {
obscureNsfw: selectObscureNsfw(state),
metadata: selectMetadataForUri(state, props),
source: selectSourceForUri(state, props),
+ resolvingUri: selectResolvingUri(state, props),
})
return select
diff --git a/ui/js/page/discover/view.jsx b/ui/js/page/discover/view.jsx
index e668855d2..5c4c4e511 100644
--- a/ui/js/page/discover/view.jsx
+++ b/ui/js/page/discover/view.jsx
@@ -18,7 +18,7 @@ const FeaturedCategory = (props) => {
{category}
{category && category.match(/^community/i) && }
- {names && names.map(name =>
)}
+ {names && names.map(name =>
)}
}
diff --git a/ui/js/selectors/content.js b/ui/js/selectors/content.js
index be38c21b3..87b91182d 100644
--- a/ui/js/selectors/content.js
+++ b/ui/js/selectors/content.js
@@ -96,3 +96,19 @@ export const shouldFetchPublishedContent = createSelector(
return true
}
)
+
+export const selectResolvingUris = createSelector(
+ _selectState,
+ (state) => state.resolvingUris || []
+)
+
+const selectResolvingUri = (state, props) => {
+ return selectResolvingUris(state).indexOf(props.uri) != -1
+}
+
+export const makeSelectResolvingUri = () => {
+ return createSelector(
+ selectResolvingUri,
+ (resolving) => resolving
+ )
+}