Skip to content

Commit

Permalink
Revert "必要な値が入力されていないときはボタンを無効化 (#98)"
Browse files Browse the repository at this point in the history
This reverts commit 3954427.
  • Loading branch information
munierujp committed Apr 27, 2023
1 parent 9a99c04 commit 57fcdd0
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions components/AppForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
} from 'date-fns'
const form = useFormStore()
const enabledSearch = computed(() => form.user !== '' || form.keyword !== '')
const now = new Date()
const setToToday = () => {
form.date = formatISODate(now)
Expand All @@ -27,7 +26,7 @@ const openTwitter = () => {
window.open(url)
}
const handleEnter = (event: KeyboardEvent | Event) => {
if (enabledSearch.value && event instanceof KeyboardEvent && event.keyCode === 13) {
if (event instanceof KeyboardEvent && event.keyCode === 13) {
openTwitter()
}
}
Expand Down Expand Up @@ -121,7 +120,6 @@ const openTwisaveSearch = () => {
<el-button
type="primary"
:circle="false"
:disabled="!enabledSearch"
@click="openTwitter"
>
検索
Expand All @@ -130,7 +128,6 @@ const openTwisaveSearch = () => {
<el-form-item>
<el-button
:circle="false"
:disabled="!form.user"
@click="openTwilogSearch"
>
Twilog(検索)
Expand All @@ -139,7 +136,6 @@ const openTwisaveSearch = () => {
<el-form-item>
<el-button
:circle="false"
:disabled="!form.user || !form.date"
@click="openTwilogDate"
>
Twilog(日別)
Expand All @@ -148,7 +144,6 @@ const openTwisaveSearch = () => {
<el-form-item>
<el-button
:circle="false"
:disabled="!form.user"
@click="openTwisaveSearch"
>
ツイセーブ(検索)
Expand All @@ -157,7 +152,6 @@ const openTwisaveSearch = () => {
<el-form-item>
<el-button
:circle="false"
:disabled="!form.user || !form.date"
@click="openTwisaveDate"
>
ツイセーブ(日別)
Expand Down

0 comments on commit 57fcdd0

Please sign in to comment.