Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Remove disableEdit from Comment
Sebastian Martinez committed 2 years ago
commit 10c54ace672321e4c682d3f8e31e722e842b7a9b
parent 24628f57d8790633d831187a786ed7a491aa1f65
1 file changed +1 -3
modified src/components/Comment.svelte
@@ -27,8 +27,6 @@
  export let timestamp: number;
  export let isReply: boolean = false;
  export let isLastReply: boolean = false;
-
  //  TODO: Remove flag once `radicle-httpd` fixes embed editing
-
  export let disableEdit: boolean = false;

  let state: "read" | "edit" | "submit" = "read";

@@ -126,7 +124,7 @@
      <NodeId nodeId={authorId} alias={authorAlias} />
      {caption}
      <div class="header-right">
-
        {#if id && editComment && state === "read" && !disableEdit}
+
        {#if id && editComment && state === "read"}
          <div class="edit-buttons">
            <IconButton title="edit comment" on:click={() => (state = "edit")}>
              <IconSmall name={"edit"} />