forms now work on enter key
This commit is contained in:
parent
fff8f318c0
commit
7758e3b5ed
|
@ -148,12 +148,13 @@
|
||||||
Path Hosting:
|
Path Hosting:
|
||||||
<ul>
|
<ul>
|
||||||
<li v-for="domain in status.pathHosting">
|
<li v-for="domain in status.pathHosting">
|
||||||
|
<form v-on:submit.prevent.stop="changePathHost(domain, domain.path)">
|
||||||
{{ domain.name }}
|
{{ domain.name }}
|
||||||
<input type="text" v-model="domain.path" v-bind:placeholder="domain.handler">
|
<input type="text" v-model="domain.path" v-bind:placeholder="domain.handler">
|
||||||
<button
|
<button type="submit"
|
||||||
v-if="domain.handler == domain.path"
|
v-if="domain.handler == domain.path">Save</button>
|
||||||
v-on:click="changePathHost(domain, domain.path)">Save</button>
|
<button type="button" v-on:click="deletePathHost(domain)">X</button>
|
||||||
<button v-on:click="deletePathHost(domain)">X</button>
|
</form>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<form v-on:submit.prevent.stop="createShare(newHttp.sub, newHttp.name, newHttp.handler)">
|
<form v-on:submit.prevent.stop="createShare(newHttp.sub, newHttp.name, newHttp.handler)">
|
||||||
|
@ -171,12 +172,13 @@
|
||||||
Port Forwarding:
|
Port Forwarding:
|
||||||
<ul>
|
<ul>
|
||||||
<li v-for="domain in status.portForwards">
|
<li v-for="domain in status.portForwards">
|
||||||
|
<form v-on:submit.prevent.stop="changePortForward(domain, domain._port)">
|
||||||
{{ domain.name }}
|
{{ domain.name }}
|
||||||
<input type="text" v-model="domain._port" v-bind:placeholder="domain.handler">
|
<input type="text" v-model="domain._port" v-bind:placeholder="domain.handler">
|
||||||
<button
|
<button type="submit"
|
||||||
v-if="domain.handler == domain._port"
|
v-if="domain.handler == domain._port">Save</button>
|
||||||
v-on:click="changePortForward(domain, domain._port)">Save</button>
|
<button type="button" v-on:click="deletePortForward(domain)">X</button>
|
||||||
<button v-on:click="deletePortForward(domain)">X</button>
|
</form>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<form v-on:submit="createHost(newHttp.sub, newHttp.name, newHttp.handler)">
|
<form v-on:submit="createHost(newHttp.sub, newHttp.name, newHttp.handler)">
|
||||||
|
|
Loading…
Reference in New Issue