Skip to content

Commit 09c54c8

Browse files
committed
[#85411] frontend: src: components: Sort actions by name
Signed-off-by: Anna Roszkiewicz <aroszkiewicz@antmicro.com>
1 parent 3495bf8 commit 09c54c8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

frontend/src/components/devices/Device.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,9 @@ export default {
450450
const newActions = await getDeviceActions(device.value.mac_address);
451451
452452
if (newActions.success && newActions.data) {
453+
newActions.data.sort((a: Action, b: Action) =>
454+
a.action_name.localeCompare(b.action_name),
455+
);
453456
actions.value = newActions.data;
454457
} else {
455458
console.warn('Failed to fetch actions');

0 commit comments

Comments
 (0)