tweak(dashboard): add desc character count here too
This commit is contained in:
parent
278104942b
commit
e9f563a1bc
@ -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}
|
||||||
|
@ -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}
|
||||||
|
Loading…
Reference in New Issue
Block a user