feat #6

Merged
ssa merged 8 commits from feat into main 2026-02-20 13:58:51 +03:00
Showing only changes of commit 1b3f3b3110 - Show all commits

View File

@@ -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>