parent
6d38c0e322
commit
a5f65d678d
4 changed files with 9 additions and 37 deletions
|
@ -29,10 +29,13 @@ class FileDetails extends React.PureComponent {
|
|||
const { description, language, license } = metadata;
|
||||
const { height } = claim;
|
||||
const mediaType = lbry.getMediaType(contentType);
|
||||
const directory = fileInfo && fileInfo.download_path
|
||||
? path.dirname(fileInfo.download_path)
|
||||
|
||||
const downloadPath = fileInfo
|
||||
? path.normalize(fileInfo.download_path)
|
||||
: null;
|
||||
|
||||
const directory = downloadPath ? path.dirname(downloadPath) : null;
|
||||
|
||||
return (
|
||||
<div>
|
||||
<FileActions uri={uri} />
|
||||
|
@ -63,7 +66,7 @@ class FileDetails extends React.PureComponent {
|
|||
<tr>
|
||||
<td>{__("Downloaded to")}</td>
|
||||
<td>
|
||||
<Link onClick={() => openFolder(directory)}>
|
||||
<Link onClick={() => openFolder(downloadPath)}>
|
||||
{directory}
|
||||
</Link>
|
||||
</td>
|
||||
|
|
|
@ -285,7 +285,6 @@ class PublishForm extends React.PureComponent {
|
|||
|
||||
let newState = {
|
||||
id: claim_id,
|
||||
uri: "",
|
||||
channel: channel_name || "anonymous",
|
||||
bid: amount,
|
||||
meta_title: title,
|
||||
|
|
|
@ -11,36 +11,6 @@ import WalletSendTip from "component/walletSendTip";
|
|||
import DateTime from "component/dateTime";
|
||||
import * as icons from "constants/icons";
|
||||
|
||||
const FormatItem = props => {
|
||||
const {
|
||||
publishedDate,
|
||||
contentType,
|
||||
claim: { height },
|
||||
metadata: { language, license },
|
||||
} = props;
|
||||
|
||||
const mediaType = lbry.getMediaType(contentType);
|
||||
|
||||
return (
|
||||
<table className="table-standard">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>{__("Published on")}</td><td><DateTime block={height} /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{__("Content-Type")}</td><td>{mediaType}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{__("Language")}</td><td>{language}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{__("License")}</td><td>{license}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
);
|
||||
};
|
||||
|
||||
class FilePage extends React.PureComponent {
|
||||
componentDidMount() {
|
||||
this.fetchFileInfo(this.props);
|
||||
|
@ -109,7 +79,8 @@ class FilePage extends React.PureComponent {
|
|||
{!fileInfo || fileInfo.written_bytes <= 0
|
||||
? <span style={{ float: "right" }}>
|
||||
<FilePrice uri={lbryuri.normalize(uri)} />
|
||||
{isRewardContent && <span>{" "}<Icon icon={icons.FEATURED} /></span>}
|
||||
{isRewardContent &&
|
||||
<span>{" "}<Icon icon={icons.FEATURED} /></span>}
|
||||
</span>
|
||||
: null}
|
||||
<h1>{title}</h1>
|
||||
|
|
|
@ -9,7 +9,6 @@ import {
|
|||
selectClaimsByUri,
|
||||
} from "selectors/claims";
|
||||
import { selectResolvingUris } from "selectors/content";
|
||||
import { makeSelectCostInfoForUri } from "selectors/cost_info";
|
||||
import {
|
||||
doFetchClaimListMine,
|
||||
doFetchChannelListMine,
|
||||
|
@ -21,7 +20,7 @@ import { selectBalance } from "selectors/wallet";
|
|||
import rewards from "rewards";
|
||||
import PublishPage from "./view";
|
||||
|
||||
const select = (state, props) => ({
|
||||
const select = state => ({
|
||||
balance: selectBalance(state),
|
||||
myClaims: selectMyClaims(state),
|
||||
fetchingChannels: selectFetchingMyChannels(state),
|
||||
|
|
Loading…
Add table
Reference in a new issue