Show update UI on backup version mismatch

This commit is contained in:
Fedor Indutny
2024-11-12 15:56:20 -08:00
committed by GitHub
parent 8557de20c2
commit 230ecdf7c9
15 changed files with 344 additions and 66 deletions

View File

@@ -32,7 +32,7 @@ export const SmartInstallScreen = memo(function SmartInstallScreen() {
const { openInbox } = useAppActions();
const { startInstaller, finishInstall, retryBackupImport } =
useInstallerActions();
const { startUpdate } = useUpdatesActions();
const { startUpdate, forceUpdate } = useUpdatesActions();
const hasExpired = useSelector(hasExpiredSelector);
const [deviceName, setDeviceName] = useState<string>('');
@@ -80,6 +80,7 @@ export const SmartInstallScreen = memo(function SmartInstallScreen() {
updates,
currentVersion: window.getVersion(),
startUpdate,
forceUpdate,
retryGetQrCode: startInstaller,
OS: OS.getName(),
isStaging: isStagingServer(),
@@ -112,9 +113,15 @@ export const SmartInstallScreen = memo(function SmartInstallScreen() {
backupStep: installerState.backupStep,
currentBytes: installerState.currentBytes,
totalBytes: installerState.totalBytes,
hasError: installerState.hasError,
error: installerState.error,
onCancel: onCancelBackupImport,
onRetry: retryBackupImport,
updates,
currentVersion: window.getVersion(),
forceUpdate,
startUpdate,
OS: OS.getName(),
},
};
break;