feat #6
@@ -60,6 +60,8 @@ export function FileChooser({ onSelected, config }: FileChooserProps) {
|
||||
URL.revokeObjectURL(url);
|
||||
}
|
||||
|
||||
const hasConfig = !!config;
|
||||
|
||||
return (
|
||||
<div className="bg-white rounded-xl shadow-md p-4 border border-slate-200">
|
||||
<div className="flex items-center gap-4 flex-wrap">
|
||||
@@ -89,8 +91,8 @@ export function FileChooser({ onSelected, config }: FileChooserProps) {
|
||||
onClick={handleDownload}
|
||||
icon={Download}
|
||||
size="sm"
|
||||
disabled={!config}
|
||||
title="Download full config template"
|
||||
disabled={!hasConfig}
|
||||
title={hasConfig ? 'Download full config template' : 'Load or create a config first'}
|
||||
>
|
||||
Download
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user