Use submit event for add column button

This commit is contained in:
kPherox 2019-04-24 17:04:44 +09:00
parent dbb9d8065d
commit 52c6ff22ee
No known key found for this signature in database
GPG Key ID: C04751C2BFA2F62D

View File

@ -1,13 +1,15 @@
<template> <template>
<div> <div>
<div v-if="showInput"> <div v-if="showInput">
<form @submit.prevent="addTL">
<input type="text" placeholder="e.g:mstdn.jp" v-model="instance"> <input type="text" placeholder="e.g:mstdn.jp" v-model="instance">
<BaseButton <BaseButton
@click.native="addTL" type="submit"
class="primary fill" class="primary fill"
style="--font-size:.8em;" style="--font-size:.8em;"
:disabled="!hasDomain" :disabled="!hasDomain"
>Add Column</BaseButton> >Add Column</BaseButton>
</form>
</div> </div>
<div id="timelines"> <div id="timelines">
<div v-for="(value, key, index) in pubTL" :key="index" class="tl"> <div v-for="(value, key, index) in pubTL" :key="index" class="tl">