This commit is contained in:
firestar5683
2026-09-14 13:20:38 -05:00
parent 200ac08499
commit 1d6d0cb5ba
2 changed files with 3 additions and 3 deletions
@@ -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: `
<div v-if="!loading && hasDevices" class="gx-device-picker">
<div v-if="!loading && hasMultipleDevices" class="gx-device-picker">
<div class="gx-device-picker__heading">
<div>
<div class="gx-nav-section__title">Commas</div>
@@ -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('<DevicePicker />') > shell.index('v-for="(links, section) in NAV"')
assert "Local Galaxy instances do not have the gateway directory endpoint." in picker