remove REVIEW.md from repo
This commit is contained in:
+7
-6
@@ -207,10 +207,7 @@ function renderAccountData() {
|
||||
setHealthState(document.getElementById('health-credentials'), Boolean(health.api_credentials));
|
||||
document.getElementById('health-session').textContent =
|
||||
health.session_ready || isAccountAuthorized(auth) ? 'Ready' : 'Missing';
|
||||
setHealthState(
|
||||
document.getElementById('health-session'),
|
||||
Boolean(health.session_ready || isAccountAuthorized(auth)),
|
||||
);
|
||||
setHealthState(document.getElementById('health-session'), Boolean(health.session_ready || isAccountAuthorized(auth)));
|
||||
document.getElementById('health-continuous').textContent = continuousStatus.running
|
||||
? 'Running'
|
||||
: continuousConfig.enabled
|
||||
@@ -298,7 +295,10 @@ async function importAccount(event) {
|
||||
await loadAccounts();
|
||||
await loadAccount(accountId);
|
||||
showToast(`Imported ${accountId}.`, 'success');
|
||||
showToast('Credentials (api_id/api_hash) are not exported for security — re-enter them in Settings if needed.', 'warn');
|
||||
showToast(
|
||||
'Credentials (api_id/api_hash) are not exported for security — re-enter them in Settings if needed.',
|
||||
'warn',
|
||||
);
|
||||
} catch (err) {
|
||||
showToast(`Failed to import account: ${err.message}`, 'error');
|
||||
}
|
||||
@@ -380,7 +380,8 @@ async function exportAccount() {
|
||||
async function deleteAccount() {
|
||||
if (!settingsState.activeAccount) return;
|
||||
const account = settingsState.accounts.find((item) => item.id === settingsState.activeAccount);
|
||||
if (!(await confirmAction(`Remove account "${accountLabel(account)}"? All its account data will be deleted.`))) return;
|
||||
if (!(await confirmAction(`Remove account "${accountLabel(account)}"? All its account data will be deleted.`)))
|
||||
return;
|
||||
await api(`/api/accounts/${encodeURIComponent(settingsState.activeAccount)}`, { method: 'DELETE' });
|
||||
setActiveAccount(null);
|
||||
await loadAccounts();
|
||||
|
||||
Reference in New Issue
Block a user