diff --git a/src/views/Instances.vue b/src/views/Instances.vue index 1b4cf84..d3563e1 100644 --- a/src/views/Instances.vue +++ b/src/views/Instances.vue @@ -212,7 +212,7 @@ export default { for (const instance of instances.value) { try { const statusResult = await instanceApi.getInstanceStatus(String(instance.instanceID)); - instance.status = statusResult.data.status; + instance.status = statusResult.data.isRunning ? 'running' : 'stopped'; } catch (error) { console.error(`Failed to load status for instance ${instance.instanceID}:`, error); } @@ -224,7 +224,7 @@ export default { const startInstance = async (instanceID) => { try { - await instanceApi.startInstance(instanceID); + await instanceApi.startInstance(instanceID.toString()); showNotification('Instance started successfully', 'success'); await loadInstances(); } catch (error) { @@ -234,7 +234,7 @@ export default { const stopInstance = async (instanceID) => { try { - await instanceApi.stopInstance(instanceID); + await instanceApi.stopInstance(instanceID.toString()); showNotification('Instance stopped successfully', 'success'); await loadInstances(); } catch (error) {