Skip to content
Snippets Groups Projects
Commit 3fe6c9f4 authored by Marcos Pieras's avatar Marcos Pieras Committed by Leonardo
Browse files

fix: adding instead of ading

parent 7f83499c
No related branches found
No related tags found
No related merge requests found
......@@ -166,43 +166,29 @@ export const SettingsForm = (props: { onClose(): void; open: 'add' | 'update'; s
</div>
)}
<div
className={`pt-4 flex flex-row gap-3 card-actions w-full justify-stretch items-center ${sampleDataPanel === true && 'hidden'}`}
>
<Button
variantType="primary"
className="flex-grow"
label={connection.updating ? formTitle.slice(0, -1) + 'ing...' : formTitle}
onClick={(event) => {
event.preventDefault();
handleSubmit();
}}
disabled={connection.updating || hasError}
/>
{props.open === 'update' && (
<Button
variantType="secondary"
className="flex-grow"
label={'Clone'}
onClick={(event) => {
handleSubmit({ ...formData, name: formData.name + ' (copy)', id: nilUUID }, true);
}}
disabled={connection.updating || hasError}
/>
)}
<Button
variant="outline"
className="flex-grow"
label="Cancel"
disabled={props.disableCancel}
onClick={(event) => {
event.preventDefault();
closeDialog();
}}
/>
</div>
</>
</DialogContent>
<div
className={`grid md:grid-cols-2 gap-3 card-actions w-full justify-stretch items-center ${sampleDataPanel === true && 'hidden'}`}
>
<Button
type="primary"
label={connection.updating ? (formTitle === 'Add' ? formTitle + 'ing...' : formTitle.slice(0, -1) + 'ing...') : formTitle}
onClick={(event) => {
event.preventDefault();
handleSubmit();
}}
disabled={connection.updating || hasError}
/>
<Button
variant="outline"
label="Cancel"
disabled={props.disableCancel}
onClick={(event) => {
event.preventDefault();
closeDialog();
}}
/>
</div>
</>
</Dialog>
);
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment