bump lbryinc and add additional pending status for youtube transfer page

This commit is contained in:
Sean Yesmunt 2021-03-09 16:57:23 -05:00
parent 19c5132ac5
commit 4e9a4f41c8
3 changed files with 9 additions and 7 deletions

View file

@ -142,7 +142,7 @@
"json-loader": "^0.5.4",
"lbry-format": "https://github.com/lbryio/lbry-format.git",
"lbry-redux": "lbryio/lbry-redux#37f17fae0c01b3bccf39ed7eac228b823439da31",
"lbryinc": "lbryio/lbryinc#eee2cb730ecec95a1344a755035755b0d4dad5cf",
"lbryinc": "lbryio/lbryinc#7faea40d87b78ec91b901c62f501499dc4737025",
"lint-staged": "^7.0.2",
"localforage": "^1.7.1",
"lodash-es": "^4.17.14",

View file

@ -35,20 +35,20 @@ export default function YoutubeTransferStatus(props: Props) {
addNewChannel,
} = props;
const hasChannels = youtubeChannels && youtubeChannels.length > 0;
const transferEnabled = youtubeChannels.some(status => status.transferable);
const transferEnabled = youtubeChannels.some((status) => status.transferable);
const hasPendingTransfers = youtubeChannels.some(
status => status.transfer_state === YOUTUBE_STATUSES.YOUTUBE_SYNC_PENDING_TRANSFER
(status) => status.transfer_state === YOUTUBE_STATUSES.YOUTUBE_SYNC_PENDING_TRANSFER
);
const isYoutubeTransferComplete =
hasChannels &&
youtubeChannels.every(
channel =>
(channel) =>
channel.transfer_state === YOUTUBE_STATUSES.YOUTUBE_SYNC_COMPLETED_TRANSFER ||
channel.sync_status === YOUTUBE_STATUSES.YOUTUBE_SYNC_ABANDONDED
);
const isNotElligible =
hasChannels && youtubeChannels.every(channel => channel.sync_status === YOUTUBE_STATUSES.YOUTUBE_SYNC_ABANDONDED);
hasChannels && youtubeChannels.every((channel) => channel.sync_status === YOUTUBE_STATUSES.YOUTUBE_SYNC_ABANDONDED);
let total;
let complete;
@ -138,6 +138,8 @@ export default function YoutubeTransferStatus(props: Props) {
const transferState = getMessage(channel);
const isWaitingForSync =
syncStatus === YOUTUBE_STATUSES.YOUTUBE_SYNC_QUEUED ||
syncStatus === YOUTUBE_STATUSES.YOUTUBE_SYNC_PENDING ||
syncStatus === YOUTUBE_STATUSES.YOUTUBE_SYNC_PENDING_EMAIL ||
syncStatus === YOUTUBE_STATUSES.YOUTUBE_SYNC_PENDINGUPGRADE ||
syncStatus === YOUTUBE_STATUSES.YOUTUBE_SYNC_SYNCING;

View file

@ -6906,9 +6906,9 @@ lbry-redux@lbryio/lbry-redux#37f17fae0c01b3bccf39ed7eac228b823439da31:
reselect "^3.0.0"
uuid "^8.3.1"
lbryinc@lbryio/lbryinc#eee2cb730ecec95a1344a755035755b0d4dad5cf:
lbryinc@lbryio/lbryinc#7faea40d87b78ec91b901c62f501499dc4737025:
version "0.0.1"
resolved "https://codeload.github.com/lbryio/lbryinc/tar.gz/eee2cb730ecec95a1344a755035755b0d4dad5cf"
resolved "https://codeload.github.com/lbryio/lbryinc/tar.gz/7faea40d87b78ec91b901c62f501499dc4737025"
dependencies:
reselect "^3.0.0"