MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / toggleSqliteButtons

Function toggleSqliteButtons

static/js/settings.js:114–130  ·  view source on GitHub ↗
(enabled)

Source from the content-addressed store, hash-verified

112}
113
114function 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
133let selectedServiceIds = new Set();

Callers 1

loadDatabaseInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected