This commit is contained in:
maziggy
2026-02-03 12:27:36 +01:00
parent 626290d401
commit 9787400935
7 changed files with 138 additions and 114 deletions
@@ -1,4 +1,5 @@
import { useState, useEffect, useRef, useCallback } from 'react';
import { useTranslation } from 'react-i18next';
import { useQuery, useQueries, useMutation, useQueryClient } from '@tanstack/react-query';
import {
Github,
@@ -96,6 +97,7 @@ function formatRelativeTime(dateStr: string | null): string {
export function GitHubBackupSettings() {
const queryClient = useQueryClient();
const { showToast } = useToast();
const { t } = useTranslation();
// Local state for form
const [repoUrl, setRepoUrl] = useState('');
@@ -766,6 +768,9 @@ export function GitHubBackupSettings() {
<p className="text-sm text-bambu-gray">
Replace all data from a backup file
</p>
<p className="text-xs text-bambu-gray-light mt-1">
{t('backup.restoreNote')}
</p>
</div>
<input
ref={fileInputRef}
+1
View File
@@ -2252,6 +2252,7 @@ export default {
restoreSuccess: 'Sicherung erfolgreich wiederhergestellt',
backupFailed: 'Sicherung fehlgeschlagen',
restoreFailed: 'Wiederherstellung fehlgeschlagen',
restoreNote: 'Virtueller Drucker wird nach der Wiederherstellung neu gestartet',
},
// Tags
+1
View File
@@ -2252,6 +2252,7 @@ export default {
restoreSuccess: 'Backup restored successfully',
backupFailed: 'Backup failed',
restoreFailed: 'Restore failed',
restoreNote: 'Virtual Printer will be restarted after restore',
},
// Tags
+1
View File
@@ -1784,6 +1784,7 @@ export default {
projectsDescription: 'プロジェクト、BOMアイテム、添付ファイル',
pendingUploadsDescription: 'レビュー待ちの仮想プリンターアップロード',
apiKeysDescription: 'Webhook APIキー(インポート時に新しいキーが生成されます)',
restoreNote: '復元後、仮想プリンターが再起動されます',
},
// Restore modal