Commit 09c234e 1 parent 8d5b46d commit 09c234e Copy full SHA for 09c234e
File tree 2 files changed +10
-7
lines changed
2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 15
15
})
16
16
17
17
const handleSubmit = (newList : OreoKey []) => {
18
- loading = true
19
- setTimeout (() => {
20
- loading = false
21
- }, 1000 )
18
+ if (newList .length ) {
19
+ loading = true
20
+ setTimeout (() => {
21
+ loading = false
22
+ }, 1000 )
22
23
23
- oreoList = [... newList ]
24
+ oreoList = [... newList ]
25
+ }
24
26
}
25
27
</script >
26
28
Original file line number Diff line number Diff line change @@ -107,8 +107,9 @@ const generateRandomOreo = () => {
107
107
h-16 mx =" -8" mb =" -8"
108
108
text =" white xl"
109
109
bg-truegray-700
110
- cursor-pointer
111
- hover =" bg-truegray-800 text-2xl" rounded-b-xl
110
+ :cursor =" oreoList.length ? 'pointer' : 'not-allowed'"
111
+ :hover =" oreoList.length ? 'bg-truegray-800 text-2xl' : ''"
112
+ rounded-b-xl select-none
112
113
@click =" handleClick"
113
114
>
114
115
{{ t('input.generate') }}
You can’t perform that action at this time.
0 commit comments