diff --git a/web/client/src/store/inventoryStore.js b/web/client/src/store/inventoryStore.js index 4e2ac95..89a8792 100644 --- a/web/client/src/store/inventoryStore.js +++ b/web/client/src/store/inventoryStore.js @@ -297,6 +297,20 @@ export const useInventoryStore = create((set, get) => ({ } }, + rebootComputers: async (target = 'all') => { + try { + const response = await fetch(`${API_URL}/reboot`, { + method: 'POST', + headers: authHeaders(), + body: JSON.stringify({ target, commandId: newCommandId() }), + }); + return await response.json(); + } catch (error) { + console.error('❌ Error sending reboot:', error); + return { success: false, error: error.message }; + } + }, + sortBarrel: async (barrelName) => { try { const response = await fetch(`${API_URL}/sort-barrel`, {