This commit is contained in:
jessop 2019-07-12 23:01:16 -04:00 committed by Sean Yesmunt
parent d1048ff835
commit 99f2e8e92f
2 changed files with 2 additions and 13 deletions

7
dist/bundle.es.js vendored
View file

@ -2863,8 +2863,6 @@ const selectTakeOverAmount = reselect.createSelector(selectState$5, selectMyClai
return null;
});
//
var _extends$4 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
const doResetThumbnailStatus = () => dispatch => {
@ -3024,7 +3022,7 @@ const doPrepareEdit = (claim, uri, fileInfo) => dispatch => {
nsfw: isClaimNsfw(claim)
};
// Make sure custom liscence's are mapped properly
// Make sure custom licenses are mapped properly
// If the license isn't one of the standard licenses, map the custom license and description/url
if (!CC_LICENSES.some(({ value }) => value === license)) {
if (!license || license === NONE || license === PUBLIC_DOMAIN) {
@ -3083,7 +3081,6 @@ const doPublish = (success, fail) => (dispatch, getState) => {
fee,
uri,
nsfw,
// claim,
tags,
locations
} = publishData;
@ -3111,7 +3108,6 @@ const doPublish = (success, fail) => (dispatch, getState) => {
languages: [language],
tags: tags && tags.map(tag => tag.name),
thumbnail_url: thumbnail
};
// Temporary solution to keep the same publish flow with the new tags api
// Eventually we will allow users to enter their own tags on publish
@ -3178,7 +3174,6 @@ const doCheckPendingPublishes = onConfirmed => (dispatch, getState) => {
// If it's confirmed, check if it was pending previously
if (claim.confirmations > 0 && pendingById[claim.claim_id]) {
delete pendingById[claim.claim_id];
// TODO fix notifications - pass as param as well?
if (onConfirmed) {
onConfirmed(claim);
}

View file

@ -13,12 +13,8 @@ import {
selectMyClaimsWithoutChannels,
} from 'redux/selectors/claims';
import { selectPublishFormValues, selectMyClaimForUri } from 'redux/selectors/publish';
// @if TARGET='app'
import fs from 'fs';
import path from 'path';
// @endif
import { formatLbryUriForWeb } from 'util/uri';
export const doResetThumbnailStatus = () => (dispatch: Dispatch) => {
dispatch({
@ -211,7 +207,7 @@ export const doPrepareEdit = (claim: StreamClaim, uri: string, fileInfo: FileLis
nsfw: isClaimNsfw(claim),
};
// Make sure custom liscence's are mapped properly
// Make sure custom licenses are mapped properly
// If the license isn't one of the standard licenses, map the custom license and description/url
if (!CC_LICENSES.some(({ value }) => value === license)) {
if (!license || license === NONE || license === PUBLIC_DOMAIN) {
@ -273,7 +269,6 @@ export const doPublish = (success: Function, fail: Function) => (
fee,
uri,
nsfw,
// claim,
tags,
locations,
} = publishData;
@ -386,7 +381,6 @@ export const doCheckPendingPublishes = (onConfirmed: Function) => (
// If it's confirmed, check if it was pending previously
if (claim.confirmations > 0 && pendingById[claim.claim_id]) {
delete pendingById[claim.claim_id];
// TODO fix notifications - pass as param as well?
if (onConfirmed) {
onConfirmed(claim);
}