Skip to content

Commit 935b95b

Browse files
author
pompurin404
committed
disable import button when url is empty
1 parent 14d7335 commit 935b95b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/renderer/src/pages/profiles.tsx

+7-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,13 @@ const Profiles: React.FC = () => {
5151
</Button>
5252
}
5353
/>
54-
<Button size="sm" color="primary" isLoading={importing} onPress={handleImport}>
54+
<Button
55+
size="sm"
56+
color="primary"
57+
isDisabled={url === ''}
58+
isLoading={importing}
59+
onPress={handleImport}
60+
>
5561
导入
5662
</Button>
5763
</div>

0 commit comments

Comments
 (0)