fetch channels after syncing
This commit is contained in:
parent
2ec3f62407
commit
4097b0e9fd
4 changed files with 15 additions and 6 deletions
|
@ -29,7 +29,8 @@ function SyncToggle(props: Props) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (getSyncError) {
|
if (getSyncError) {
|
||||||
return history.push(`/$/${PAGES.AUTH}?redirect=${pathname}&immediate=true`);
|
history.push(`/$/${PAGES.AUTH}?redirect=${pathname}&immediate=true`);
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -467,7 +467,9 @@ export function doSignOut() {
|
||||||
|
|
||||||
export function doSyncWithPreferences() {
|
export function doSyncWithPreferences() {
|
||||||
return dispatch => {
|
return dispatch => {
|
||||||
function handlePreferencesAfterSync() {
|
function handleSyncComplete() {
|
||||||
|
dispatch(doFetchChannelListMine());
|
||||||
|
|
||||||
function successCb(savedPreferences) {
|
function successCb(savedPreferences) {
|
||||||
dispatch(doPopulateSharedUserState(savedPreferences));
|
dispatch(doPopulateSharedUserState(savedPreferences));
|
||||||
}
|
}
|
||||||
|
@ -487,7 +489,7 @@ export function doSyncWithPreferences() {
|
||||||
return getSavedPassword().then(password => {
|
return getSavedPassword().then(password => {
|
||||||
const passwordArgument = password === null ? '' : password;
|
const passwordArgument = password === null ? '' : password;
|
||||||
|
|
||||||
dispatch(doGetSync(passwordArgument, handlePreferencesAfterSync));
|
dispatch(doGetSync(passwordArgument, handleSyncComplete));
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,7 @@ export const setSavedPassword = (value, saveToDisk) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
sessionPassword = value;
|
sessionPassword = value;
|
||||||
if (saveToDisk && value) {
|
if (saveToDisk && value !== undefined) {
|
||||||
ipcRenderer.send('set-password', value);
|
ipcRenderer.send('set-password', value);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -818,5 +818,11 @@
|
||||||
"Anonymous content is published without a channel.": "Anonymous content is published without a channel.",
|
"Anonymous content is published without a channel.": "Anonymous content is published without a channel.",
|
||||||
"settings": "settings",
|
"settings": "settings",
|
||||||
"Content may be hidden on this %type% because of your %settings%": "Content may be hidden on this %type% because of your %settings%",
|
"Content may be hidden on this %type% because of your %settings%": "Content may be hidden on this %type% because of your %settings%",
|
||||||
"Content may be hidden on this %type% because of your %settings%.": "Content may be hidden on this %type% because of your %settings%."
|
"Content may be hidden on this %type% because of your %settings%.": "Content may be hidden on this %type% because of your %settings%.",
|
||||||
|
"Sync balance and preferences across devices.": "Sync balance and preferences across devices.",
|
||||||
|
"By continuing, I agree to the %terms% and confirm I am over the age of 13.": "By continuing, I agree to the %terms% and confirm I am over the age of 13.",
|
||||||
|
"Sync": "Sync",
|
||||||
|
"Sync your balance and preferences accross LBRY apps.": "Sync your balance and preferences accross LBRY apps.",
|
||||||
|
"earned and bound in tips": "earned and bound in tips",
|
||||||
|
"currently staked": "currently staked"
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue