mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-01 09:40:28 +08:00
Make 'Error' component action label configurable
Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
+2
-1
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user