Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Make 'Error' component action label configurable
Alexis Sellier committed 4 years ago
commit 2aaa1ed76a77fc2a8f58c8b233317223b0702971
parent e7dd169b24bd549b641002ea8da884e64685f713
1 file changed +2 -1
modified src/Error.svelte
@@ -11,6 +11,7 @@
  export let message = "";
  export let floating = false;
  export let subtle = false;
+
  export let action = floating ? "Close" : "Back";

  let body = message || (error && error.message) || "";
</script>
@@ -32,7 +33,7 @@

  <span slot="actions">
    <button on:click={() => dispatch('close')}>
-
      Back
+
      {action}
    </button>
  </span>
</Modal>