a little cleanup

This commit is contained in:
spencerrlongg 2023-11-15 22:35:20 -06:00
parent 477bb6165f
commit e097df912e

View file

@ -93,7 +93,8 @@
<label class="col-md-4 control-label" for="name">Name</label> <label class="col-md-4 control-label" for="name">Name</label>
<div class="col-md-6"> <div class="col-md-6">
<input id="create-token-name" type="text" aria-label="name" class="form-control" name="name" <input id="create-token-name" type="text" aria-label="name" class="form-control"
name="name"
{{-- defer because it's submitting as i type if i don't --}} {{-- defer because it's submitting as i type if i don't --}}
wire:model.defer="name" wire:model.defer="name"
> >
@ -133,7 +134,7 @@
<button type="button" class="btn primary" data-dismiss="modal">Close</button> <button type="button" class="btn primary" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary" <button type="button" class="btn btn-primary"
wire:click="createToken(name)" wire:click="createToken(name)"
> >
Create Create
</button> </button>
@ -172,10 +173,10 @@
</div> </div>
</div> </div>
</div> </div>
<script> <script>
window.addEventListener('tokenCreated', token => { window.addEventListener('tokenCreated', token => {
$('#modal-create-token').modal('hide'); $('#modal-create-token').modal('hide');
$('#modal-access-token').modal('show'); $('#modal-access-token').modal('show');
}) })
</script> </script>
</div> </div>