Radish alpha
r
Radicle desktop app
Radicle
Git (anonymous pull)
Log in to clone via SSH
Allow patch authors to change the state of their patch
✓ CI success Rūdolfs Ošiņš committed 8 days ago
commit 8a60f58ffc9573be3b01a3d55a4e686f46458d7b
parent 3fc73a0b8937cbc816aad2034a6a23fa5840ff52
1 passed (1 total) View logs
2 files changed +3 -2
modified src/components/PatchMetadata.svelte
@@ -98,9 +98,10 @@
      onSelect={newState => {
        void saveState(newState);
      }}
-
      disabled={!roles.isDelegate(
+
      disabled={!roles.isDelegateOrAuthor(
        config.publicKey,
        repo.delegates.map(d => d.did),
+
        patch.author.did,
      )} />
  </div>

modified src/components/PatchStateButton.svelte
@@ -36,7 +36,7 @@
      title={selectedState.status === "merged"
        ? "The state of merged patches can not be changed"
        : 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}>
      <span
        class="global-chip"