diff --git a/starpilot/system/the_galaxy/assets/mobile/js/components/DevicePicker.js b/starpilot/system/the_galaxy/assets/mobile/js/components/DevicePicker.js index 57ff230bb7..1aeecbce0a 100644 --- a/starpilot/system/the_galaxy/assets/mobile/js/components/DevicePicker.js +++ b/starpilot/system/the_galaxy/assets/mobile/js/components/DevicePicker.js @@ -15,7 +15,7 @@ export const DevicePicker = { } }, computed: { - hasDevices() { return this.devices.length > 0 }, + hasMultipleDevices() { return this.devices.length > 1 }, }, methods: { loadCustomNames() { @@ -89,7 +89,7 @@ export const DevicePicker = { this.loadDevices() }, template: ` -
+
Commas
diff --git a/starpilot/system/the_galaxy/tests/test_ui_vue_frontend.py b/starpilot/system/the_galaxy/tests/test_ui_vue_frontend.py index 710187dea2..534da1e92d 100644 --- a/starpilot/system/the_galaxy/tests/test_ui_vue_frontend.py +++ b/starpilot/system/the_galaxy/tests/test_ui_vue_frontend.py @@ -70,7 +70,7 @@ def test_ui_device_picker_uses_gateway_directory_and_preserves_local_galaxy(): assert 'fetch("/_gateway/devices"' in picker assert "localStorage" in picker assert "Rename comma" in picker - assert "hasDevices" in picker + assert "hasMultipleDevices" in picker assert "window.location.assign(device.path)" in picker assert shell.index('') > shell.index('v-for="(links, section) in NAV"') assert "Local Galaxy instances do not have the gateway directory endpoint." in picker