mirror of
https://github.com/tale/headplane.git
synced 2026-07-26 15:58:14 +00:00
fix: oops forgot to disable buttons with empty input
This commit is contained in:
@@ -120,7 +120,11 @@ export default function Domains({ baseDomain, searchDomains }: Properties) {
|
||||
/>
|
||||
<button
|
||||
type='button'
|
||||
className='text-sm text-blue-700'
|
||||
className={clsx(
|
||||
'text-sm text-blue-700',
|
||||
newDomain.length === 0 ? 'opacity-50 cursor-not-allowed' : ''
|
||||
)}
|
||||
disabled={newDomain.length === 0}
|
||||
onClick={() => {
|
||||
fetcher.submit({
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
|
||||
@@ -144,7 +144,11 @@ export default function Page() {
|
||||
/>
|
||||
<button
|
||||
type='button'
|
||||
className='text-sm text-blue-700'
|
||||
className={clsx(
|
||||
'text-sm text-blue-700',
|
||||
ns.length === 0 ? 'opacity-50 cursor-not-allowed' : ''
|
||||
)}
|
||||
disabled={ns.length === 0}
|
||||
onClick={() => {
|
||||
fetcher.submit({
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
|
||||
Reference in New Issue
Block a user