Commit a65fd9de authored by yangjianbo's avatar yangjianbo
Browse files

Merge branch 'test'

parents 0a848e75 1bb4c76d
...@@ -357,9 +357,6 @@ const handleBulkToggleSchedulable = async (schedulable: boolean) => { ...@@ -357,9 +357,6 @@ const handleBulkToggleSchedulable = async (schedulable: boolean) => {
} else { } else {
selIds.value = hasIds ? [] : accountIds selIds.value = hasIds ? [] : accountIds
} }
load().catch((error) => {
console.error('Failed to refresh accounts:', error)
})
} catch (error) { } catch (error) {
console.error('Failed to bulk toggle schedulable:', error) console.error('Failed to bulk toggle schedulable:', error)
appStore.showError(t('common.error')) appStore.showError(t('common.error'))
...@@ -383,9 +380,6 @@ const handleToggleSchedulable = async (a: Account) => { ...@@ -383,9 +380,6 @@ const handleToggleSchedulable = async (a: Account) => {
try { try {
const updated = await adminAPI.accounts.setSchedulable(a.id, nextSchedulable) const updated = await adminAPI.accounts.setSchedulable(a.id, nextSchedulable)
updateSchedulableInList([a.id], updated?.schedulable ?? nextSchedulable) updateSchedulableInList([a.id], updated?.schedulable ?? nextSchedulable)
load().catch((error) => {
console.error('Failed to refresh accounts:', error)
})
} catch (error) { } catch (error) {
console.error('Failed to toggle schedulable:', error) console.error('Failed to toggle schedulable:', error)
appStore.showError(t('admin.accounts.failedToToggleSchedulable')) appStore.showError(t('admin.accounts.failedToToggleSchedulable'))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment