ts: types to ToolPower

This commit is contained in:
axolotle 2024-08-13 00:34:21 +02:00
parent 06ce2a5bec
commit 8507e35ff2

View file

@ -9,7 +9,7 @@ const { t } = useI18n()
const modalConfirm = useAutoModal()
const { tryToReconnect } = useInfos()
async function triggerAction(action) {
async function triggerAction(action: 'reboot' | 'shutdown') {
const confirmed = await modalConfirm(t('confirm_reboot_action_' + action))
if (!confirmed) return