1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-07-21 06:48:04 +00:00
This commit is contained in:
2023-01-16 20:07:56 +01:00
parent e0cda5cccb
commit ff2be60066
2 changed files with 13 additions and 3 deletions

View File

@ -73,7 +73,9 @@
<label class="field">
<input type="text" spellcheck="false" bind:value={newDb.name} use:input placeholder="New collection name" bind:this={newDbInput} />
</label>
<button class="btn create" type="submit">Create database</button>
<p>
<button class="btn create" type="submit" disabled={!newDb.name?.trim()}>Create database</button>
</p>
</form>
</Modal>
{/if}
@ -86,7 +88,9 @@
<label class="field">
<input type="text" spellcheck="false" bind:value={newColl.name} use:input placeholder="New collection name" bind:this={newCollInput} />
</label>
<button class="btn create" type="submit">Create collection</button>
<p>
<button class="btn create" type="submit" disabled={!newColl.name?.trim()}>Create collection</button>
</p>
</form>
</Modal>
{/if}