notes about availability

This commit is contained in:
cupcakearmy 2021-05-08 21:46:33 +02:00
parent ef3d3d5bde
commit 9c675ba48c
No known key found for this signature in database
GPG Key ID: D28129AE5654D9D9

View File

@ -66,11 +66,21 @@
<TextInput <TextInput
type="text" type="text"
readonly readonly
label="share link"
value="{window.location.origin}/note/{result.id}/{result.password}" value="{window.location.origin}/note/{result.id}/{result.password}"
copy copy
/> />
<br /> <br />
<Button on:click={reset}>new</Button> <p>
<b>availability:</b>
<br />
the note is not guaranteed to be stored as everything is kept in ram, if it fills up the oldest notes
will be removed.
<br />
(you probably will be fine, just be warned.)
</p>
<br />
<Button on:click={reset}>new note</Button>
{:else} {:else}
<form on:submit|preventDefault={submit}> <form on:submit|preventDefault={submit}>
<fieldset disabled={loading}> <fieldset disabled={loading}>
@ -85,7 +95,14 @@
<div class="error-text">{error}</div> <div class="error-text">{error}</div>
{/if} {/if}
<p><br />{message}</p> <p>
<br />
{#if loading}
loading...
{:else}
{message}
{/if}
</p>
<div class="advanced" class:hidden={!advanced}> <div class="advanced" class:hidden={!advanced}>
<br /> <br />