Skip to content

Commit

Permalink
chore: add default sorting pod (podman-desktop#7523)
Browse files Browse the repository at this point in the history
### What does this PR do?

Adds default sorting for pods list to name

### Screenshot / video of UI

<!-- If this PR is changing UI, please include
screenshots or screencasts showing the difference -->

### What issues does this PR fix or reference?

<!-- Include any related issues from Podman Desktop
repository (or from another issue tracker). -->

Closes podman-desktop#7476

### How to test this PR?

<!-- Please explain steps to verify the functionality,
do not forget to provide unit/component tests -->

- [X] Tests are covering the bug fix or the new feature

See that loading pods list it is sorted by name now.

Signed-off-by: Charlie Drage <[email protected]>
  • Loading branch information
cdrage authored Jun 10, 2024
1 parent b84da26 commit 7675589
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/renderer/src/lib/pod/PodsList.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ const row = new TableRow<PodInfoUI>({ selectable: _pod => true });
data="{pods}"
columns="{columns}"
row="{row}"
defaultSortColumn="Name"
on:update="{() => (pods = pods)}">
</Table>

Expand Down

0 comments on commit 7675589

Please sign in to comment.