Skip to content

Commit

Permalink
Moved visibility of process to header.
Browse files Browse the repository at this point in the history
  • Loading branch information
amyjko committed Jul 22, 2024
1 parent 0ad18b9 commit a5a3978
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Dates should be in`YYYY-MM-DD` format and versions are in [semantic versioning](
- Permit accountable person to be responsible, consulted, and informed on subtasks.
- Avoid keyboard conflict in `HowView`.
- Changed "suggestion" to "change"
- Moved visibility of process to header.

## v0.6.0 2024-07-05

Expand Down
34 changes: 17 additions & 17 deletions src/routes/org/[orgid]/process/[processid]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,23 @@
"Couldn't update process title."
)
: undefined}
/>
>
<Visibility
tip="Change visibility of this process"
level={how.visibility}
edit={editable
? (vis) =>
vis === 'public' || vis === 'org' || vis === 'admin'
? $db.updateHowVisibility(how, vis)
: undefined
: undefined}
/>
<Note inline
>{#if how.visibility === 'public'}Everyone on the internet can see this process{:else if how.visibility === 'org'}Only
members can see this process.{:else if how.visibility === 'admin'}Only admins can see this
process.{/if}</Note
>
</Title>

<Tip member
>Admins and anyone <Level level="accountable" verbose /> or <Level
Expand Down Expand Up @@ -144,22 +160,6 @@

<ARCI {how} verbose />

<Tip member
>This determines who can see this process. You can also control the visibility of individual
steps below.</Tip
>

<Visibility
tip="Change visibility of this process"
level={how.visibility}
edit={editable
? (vis) =>
vis === 'public' || vis === 'org' || vis === 'admin'
? $db.updateHowVisibility(how, vis)
: undefined
: undefined}
/>

<Header>When</Header>

{#if process.repeat}
Expand Down

0 comments on commit a5a3978

Please sign in to comment.