Skip to content

Commit 10622d9

Browse files
committed
Reorder devices page to be consistent with users
1 parent 4bf9d28 commit 10622d9

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

adminui2/src/pages/Devices.vue

+10-10
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,10 @@ const isCreateTokenModalOpen = ref(false)
119119
<tr>
120120
<th>Owner</th>
121121
<th>Active</th>
122-
<th>Locked</th>
123122
<th>Address</th>
124123
<th>Public Key</th>
125124
<th>Last Endpoint</th>
126-
125+
<th>Locked</th>
127126
</tr>
128127
</thead>
129128
<tbody>
@@ -134,22 +133,23 @@ const isCreateTokenModalOpen = ref(false)
134133
<td class="font-mono">
135134
<div class="overflow-hidden text-ellipsis whitespace-nowrap">{{ device.active }}</div>
136135
</td>
137-
<td class="font-mono">
138-
<div><font-awesome-icon class="cursor-pointer"
139-
@click="updateDevice([device.internal_ip], (device.is_locked) ? DeviceEditActions.Unlock : DeviceEditActions.Lock)"
140-
:icon="device.is_locked ? Icons.Locked : Icons.Unlocked"
141-
:class="device.is_locked ? 'text-error' : 'text-secondary'" /></div>
142-
</td>
143136
<td class="font-mono">
144137
<div class="overflow-hidden text-ellipsis whitespace-nowrap">{{ device.internal_ip }}</div>
145138
</td>
146139
<td class="font-mono">
147140
<div class="overflow-hidden text-ellipsis whitespace-nowrap">{{ device.public_key }}</div>
148141
</td>
149-
<td class="font-mono relative">
142+
<td class="font-mono ">
150143
<div class="overflow-hidden text-ellipsis whitespace-nowrap">{{ device.last_endpoint == '<nil>' ? '-'
151144
: device.last_endpoint}}</div>
152-
<ConfirmModal @on-confirm="() => tryDeleteDevices([device.internal_ip])">
145+
146+
</td>
147+
<td class="font-mono relative">
148+
<div><font-awesome-icon class="cursor-pointer"
149+
@click="updateDevice([device.internal_ip], (device.is_locked) ? DeviceEditActions.Unlock : DeviceEditActions.Lock)"
150+
:icon="device.is_locked ? Icons.Locked : Icons.Unlocked"
151+
:class="device.is_locked ? 'text-error' : 'text-secondary'" /></div>
152+
<ConfirmModal @on-confirm="() => tryDeleteDevices([device.internal_ip])">
153153
<button
154154
class="absolute right-4 top-1/2 -translate-y-1/2 opacity-0 group-hover:opacity-100 transition-opacity duration-200">
155155
<font-awesome-icon :icon="Icons.Delete" class="text-error hover:text-error-focus" />

0 commit comments

Comments
 (0)