tweak(dashboard): add desc character count here too

This commit is contained in:
Jake Fulmine 2023-01-21 20:58:34 +01:00
parent 278104942b
commit e9f563a1bc
2 changed files with 2 additions and 0 deletions

View File

@ -172,6 +172,7 @@
<br> <br>
<textarea class="form-control" bind:value={input.description} maxlength={1000} use:autoresize /> <textarea class="form-control" bind:value={input.description} maxlength={1000} use:autoresize />
</div> </div>
<span class="text-center d-block mb-2 mb-lg-1" >({input.description ? input.description.length : 0} / 1000 characters)</span>
{#if !loading && input.name}<Button style="flex: 0" color="primary" on:click={submit}>Submit</Button> {#if !loading && input.name}<Button style="flex: 0" color="primary" on:click={submit}>Submit</Button>
{:else if !input.name }<Button style="flex: 0" color="primary" disabled>Submit</Button> {:else if !input.name }<Button style="flex: 0" color="primary" disabled>Submit</Button>
{:else}<Button style="flex: 0" color="primary" disabled><Spinner size="sm"/></Button>{/if} {:else}<Button style="flex: 0" color="primary" disabled><Spinner size="sm"/></Button>{/if}

View File

@ -247,6 +247,7 @@
<br> <br>
<textarea class="form-control" bind:value={input.description} maxlength={1000} use:autoresize placeholder={input.description}/> <textarea class="form-control" bind:value={input.description} maxlength={1000} use:autoresize placeholder={input.description}/>
</div> </div>
<span class="text-center d-block mb-2 mb-lg-1" >({input.description ? input.description.length : 0} / 1000 characters)</span>
{#if !loading && input.name}<Button style="flex: 0" color="primary" on:click={submit}>Submit</Button> {#if !loading && input.name}<Button style="flex: 0" color="primary" on:click={submit}>Submit</Button>
{:else if !input.name }<Button style="flex: 0" color="primary" disabled>Submit</Button> {:else if !input.name }<Button style="flex: 0" color="primary" disabled>Submit</Button>
{:else}<Button style="flex: 0" color="primary" disabled><Spinner size="sm"/></Button>{/if} {:else}<Button style="flex: 0" color="primary" disabled><Spinner size="sm"/></Button>{/if}