Make 'Error' component action label configurable

Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
Alexis Sellier
2021-06-22 13:06:58 +02:00
parent e7dd169b24
commit 2aaa1ed76a
+2 -1
View File
@@ -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>