| 112 | } |
| 113 | |
| 114 | function toggleSqliteButtons(enabled) { |
| 115 | if (elements.backupBtn) { |
| 116 | elements.backupBtn.disabled = !enabled; |
| 117 | } |
| 118 | if (elements.importDbBtn) { |
| 119 | elements.importDbBtn.disabled = !enabled; |
| 120 | } |
| 121 | if (elements.dbImportFile) { |
| 122 | elements.dbImportFile.disabled = !enabled; |
| 123 | } |
| 124 | const status = document.getElementById('db-file-status'); |
| 125 | if (status) { |
| 126 | status.textContent = enabled |
| 127 | ? '数据库文件操作当前仅支持 SQLite。' |
| 128 | : '当前数据库为非 SQLite,不支持在线备份/导入,请使用外部工具。'; |
| 129 | } |
| 130 | } |
| 131 | |
| 132 | // 选中的服务 ID |
| 133 | let selectedServiceIds = new Set(); |