Skip to content

Commit

Permalink
Sorted role titles on process page.
Browse files Browse the repository at this point in the history
  • Loading branch information
amyjko committed Jul 21, 2024
1 parent 5a7e7a6 commit 77496e8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Dates should be in`YYYY-MM-DD` format and versions are in [semantic versioning](

- Resolved issue where Supabase client would become unresponsive after tab change.
- Improved styling of fields.
- Sorted role titles on process page.

## v0.6.0 2024-07-05

Expand Down
9 changes: 6 additions & 3 deletions src/routes/org/[orgid]/process/[processid]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,12 @@
tip="Choose a role to be accountable for the processes outcomes."
options={[
{ value: undefined, label: '' },
...$org.getRoles().map((role) => {
return { value: role.id, label: role.title };
})
...$org
.getRoles()
.toSorted((a, b) => a.title.localeCompare(b.title))
.map((role) => {
return { value: role.id, label: role.title };
})
]}
selection={process.accountable ?? undefined}
change={(value) => $db.updateProcessAccountable(process, value ?? null)}
Expand Down

0 comments on commit 77496e8

Please sign in to comment.