Radish alpha
r
Radicle desktop app
Radicle
Git (anonymous pull)
Log in to clone via SSH
Change the sidebar filter to match new patch state
Rūdolfs Ošiņš committed 1 year ago
commit 63d1c87c7f10456970b868367fce9f12d2e741df
parent 32ca4dc48df13f9956542a7e0e5b70a3ce93519d
1 file changed +12 -1
modified src/views/repo/Patch.svelte
@@ -49,12 +49,20 @@
  }

  /* eslint-disable prefer-const */
-
  let { repo, patch, patches, revisions, config, status }: Props = $props();
+
  let {
+
    repo,
+
    patch,
+
    patches,
+
    revisions,
+
    config,
+
    status: initialStatus,
+
  }: Props = $props();
  /* eslint-enable prefer-const */

  let cursor = patches.cursor;
  let more = patches.more;
  let items = $state(patches.content);
+
  let status = $state(initialStatus);
  let editingTitle = $state(false);
  let updatedTitle = $state("");
  let labelSaveInProgress: boolean = $state(false);
@@ -238,6 +246,9 @@
        },
        opts: { announce: $nodeRunning && $announce },
      });
+
      if (initialStatus !== undefined) {
+
        status = state["status"];
+
      }
    } catch (error) {
      console.error("Changing patch state failed", error);
    } finally {