@betterstart/cli 0.1.79 → 0.1.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js
CHANGED
|
@@ -7142,7 +7142,8 @@ ${fieldsJSX}
|
|
|
7142
7142
|
</CardContent>
|
|
7143
7143
|
<CardFooter>${group3.hint ? `
|
|
7144
7144
|
<p className="text-sm text-muted-foreground">${group3.hint}</p>` : ""}
|
|
7145
|
-
<Button type="submit" disabled={isPending} size="sm" className="ml-auto min-w-25">
|
|
7145
|
+
<Button type="submit" disabled={isPending || !form.formState.isDirty} size="sm" className="ml-auto min-w-25">
|
|
7146
|
+
{isPending && <LoaderCircle className="animate-spin" />}
|
|
7146
7147
|
{isPending ? 'Saving...' : 'Save'}
|
|
7147
7148
|
</Button>
|
|
7148
7149
|
</CardFooter>
|
|
@@ -7218,7 +7219,7 @@ function generateSingleForm(schema, cwd, pagesDir, options = {}) {
|
|
|
7218
7219
|
CardHeader,
|
|
7219
7220
|
CardTitle
|
|
7220
7221
|
} from '@cms/components/ui/card'`);
|
|
7221
|
-
const lucideIcons = [];
|
|
7222
|
+
const lucideIcons = ["LoaderCircle"];
|
|
7222
7223
|
if (hasRelationship) lucideIcons.push("Check", "ChevronsUpDown");
|
|
7223
7224
|
if (hasNestedList) {
|
|
7224
7225
|
if (!lucideIcons.includes("Plus")) lucideIcons.push("Plus");
|