mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-04-30 01:46:37 +08:00
revert: remove non-ATX changes from #223 merge
This commit is contained in:
@@ -1407,19 +1407,15 @@ function openTerminalInNewTab() {
|
||||
|
||||
// ATX actions
|
||||
async function handlePowerShort() {
|
||||
console.log('[ConsoleView] Handling power short press')
|
||||
try {
|
||||
const res = await atxApi.power('short')
|
||||
console.log('[ConsoleView] Power short API result:', res)
|
||||
await atxApi.power('short')
|
||||
await systemStore.fetchAtxState()
|
||||
} catch (e) {
|
||||
console.error('[ConsoleView] Power short API failed:', e)
|
||||
} catch {
|
||||
// ATX action failed
|
||||
}
|
||||
}
|
||||
|
||||
async function handlePowerLong() {
|
||||
console.log('[ConsoleView] Handling power long press')
|
||||
try {
|
||||
await atxApi.power('long')
|
||||
await systemStore.fetchAtxState()
|
||||
|
||||
Reference in New Issue
Block a user