cleanup
This commit is contained in:
parent
d1048ff835
commit
99f2e8e92f
2 changed files with 2 additions and 13 deletions
7
dist/bundle.es.js
vendored
7
dist/bundle.es.js
vendored
|
@ -2863,8 +2863,6 @@ const selectTakeOverAmount = reselect.createSelector(selectState$5, selectMyClai
|
||||||
return null;
|
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; };
|
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 => {
|
const doResetThumbnailStatus = () => dispatch => {
|
||||||
|
@ -3024,7 +3022,7 @@ const doPrepareEdit = (claim, uri, fileInfo) => dispatch => {
|
||||||
nsfw: isClaimNsfw(claim)
|
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 the license isn't one of the standard licenses, map the custom license and description/url
|
||||||
if (!CC_LICENSES.some(({ value }) => value === license)) {
|
if (!CC_LICENSES.some(({ value }) => value === license)) {
|
||||||
if (!license || license === NONE || license === PUBLIC_DOMAIN) {
|
if (!license || license === NONE || license === PUBLIC_DOMAIN) {
|
||||||
|
@ -3083,7 +3081,6 @@ const doPublish = (success, fail) => (dispatch, getState) => {
|
||||||
fee,
|
fee,
|
||||||
uri,
|
uri,
|
||||||
nsfw,
|
nsfw,
|
||||||
// claim,
|
|
||||||
tags,
|
tags,
|
||||||
locations
|
locations
|
||||||
} = publishData;
|
} = publishData;
|
||||||
|
@ -3111,7 +3108,6 @@ const doPublish = (success, fail) => (dispatch, getState) => {
|
||||||
languages: [language],
|
languages: [language],
|
||||||
tags: tags && tags.map(tag => tag.name),
|
tags: tags && tags.map(tag => tag.name),
|
||||||
thumbnail_url: thumbnail
|
thumbnail_url: thumbnail
|
||||||
|
|
||||||
};
|
};
|
||||||
// Temporary solution to keep the same publish flow with the new tags api
|
// 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
|
// 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 it's confirmed, check if it was pending previously
|
||||||
if (claim.confirmations > 0 && pendingById[claim.claim_id]) {
|
if (claim.confirmations > 0 && pendingById[claim.claim_id]) {
|
||||||
delete pendingById[claim.claim_id];
|
delete pendingById[claim.claim_id];
|
||||||
// TODO fix notifications - pass as param as well?
|
|
||||||
if (onConfirmed) {
|
if (onConfirmed) {
|
||||||
onConfirmed(claim);
|
onConfirmed(claim);
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,12 +13,8 @@ import {
|
||||||
selectMyClaimsWithoutChannels,
|
selectMyClaimsWithoutChannels,
|
||||||
} from 'redux/selectors/claims';
|
} from 'redux/selectors/claims';
|
||||||
import { selectPublishFormValues, selectMyClaimForUri } from 'redux/selectors/publish';
|
import { selectPublishFormValues, selectMyClaimForUri } from 'redux/selectors/publish';
|
||||||
// @if TARGET='app'
|
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
// @endif
|
|
||||||
|
|
||||||
import { formatLbryUriForWeb } from 'util/uri';
|
|
||||||
|
|
||||||
export const doResetThumbnailStatus = () => (dispatch: Dispatch) => {
|
export const doResetThumbnailStatus = () => (dispatch: Dispatch) => {
|
||||||
dispatch({
|
dispatch({
|
||||||
|
@ -211,7 +207,7 @@ export const doPrepareEdit = (claim: StreamClaim, uri: string, fileInfo: FileLis
|
||||||
nsfw: isClaimNsfw(claim),
|
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 the license isn't one of the standard licenses, map the custom license and description/url
|
||||||
if (!CC_LICENSES.some(({ value }) => value === license)) {
|
if (!CC_LICENSES.some(({ value }) => value === license)) {
|
||||||
if (!license || license === NONE || license === PUBLIC_DOMAIN) {
|
if (!license || license === NONE || license === PUBLIC_DOMAIN) {
|
||||||
|
@ -273,7 +269,6 @@ export const doPublish = (success: Function, fail: Function) => (
|
||||||
fee,
|
fee,
|
||||||
uri,
|
uri,
|
||||||
nsfw,
|
nsfw,
|
||||||
// claim,
|
|
||||||
tags,
|
tags,
|
||||||
locations,
|
locations,
|
||||||
} = publishData;
|
} = publishData;
|
||||||
|
@ -386,7 +381,6 @@ export const doCheckPendingPublishes = (onConfirmed: Function) => (
|
||||||
// If it's confirmed, check if it was pending previously
|
// If it's confirmed, check if it was pending previously
|
||||||
if (claim.confirmations > 0 && pendingById[claim.claim_id]) {
|
if (claim.confirmations > 0 && pendingById[claim.claim_id]) {
|
||||||
delete pendingById[claim.claim_id];
|
delete pendingById[claim.claim_id];
|
||||||
// TODO fix notifications - pass as param as well?
|
|
||||||
if (onConfirmed) {
|
if (onConfirmed) {
|
||||||
onConfirmed(claim);
|
onConfirmed(claim);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue