Skip to content

Commit 6bec3e2

Browse files
authored
Merge pull request #6127 from FlowFuse/navigate-to-device-from-device-group-member-page
Wrap device names in router-link for navigation to DeviceOverview page
2 parents b1021e3 + 3ec5dfe commit 6bec3e2

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

frontend/src/pages/application/DeviceGroup/devices.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@
4848
<ff-data-table-cell>
4949
<ff-checkbox v-model="device.selected" />
5050
</ff-data-table-cell>
51-
<ff-data-table-cell>{{ device.name }}</ff-data-table-cell>
51+
<ff-data-table-cell>
52+
<router-link :to="{name: 'DeviceOverview', params: {id: device.id}}">{{ device.name }}</router-link>
53+
</ff-data-table-cell>
5254
<ff-data-table-cell>{{ device.type }}</ff-data-table-cell>
5355
</ff-data-table-row>
5456
</template>
@@ -77,7 +79,9 @@
7779
<ff-data-table-cell v-if="editMode">
7880
<ff-checkbox v-model="device.selected" class="inline" />
7981
</ff-data-table-cell>
80-
<ff-data-table-cell class="w-1/3">{{ device.name }}</ff-data-table-cell>
82+
<ff-data-table-cell class="w-1/3">
83+
<router-link :to="{name: 'DeviceOverview', params: {id: device.id}}">{{ device.name }}</router-link>
84+
</ff-data-table-cell>
8185
<ff-data-table-cell class="w-1/3">{{ device.name }}</ff-data-table-cell>
8286
<ff-data-table-cell v-if="!editMode" class="w-1/3">
8387
<ActiveSnapshotCell :activeSnapshot="getDeviceActiveSnapshot(device)" :targetSnapshot="targetSnapshot" />

0 commit comments

Comments
 (0)