mirror of
https://seed.radicle.dev/rad:z4D5UCArafTzTQpDZNQRuqswh3ury.git
synced 2026-10-18 19:10:45 +08:00
Allow patch authors to change the state of their patch
This commit is contained in:
@@ -98,9 +98,10 @@
|
|||||||
onSelect={newState => {
|
onSelect={newState => {
|
||||||
void saveState(newState);
|
void saveState(newState);
|
||||||
}}
|
}}
|
||||||
disabled={!roles.isDelegate(
|
disabled={!roles.isDelegateOrAuthor(
|
||||||
config.publicKey,
|
config.publicKey,
|
||||||
repo.delegates.map(d => d.did),
|
repo.delegates.map(d => d.did),
|
||||||
|
patch.author.did,
|
||||||
)} />
|
)} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
title={selectedState.status === "merged"
|
title={selectedState.status === "merged"
|
||||||
? "The state of merged patches can not be changed"
|
? "The state of merged patches can not be changed"
|
||||||
: disabled
|
: disabled
|
||||||
? "You must be a delegate to change the patch state"
|
? "You must be a delegate or the patch author to change the patch state"
|
||||||
: undefined}>
|
: undefined}>
|
||||||
<span
|
<span
|
||||||
class="global-chip"
|
class="global-chip"
|
||||||
|
|||||||
Reference in New Issue
Block a user