mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-12 16:44:08 -08:00
a little cleanup
This commit is contained in:
parent
477bb6165f
commit
e097df912e
|
@ -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>
|
Loading…
Reference in a new issue