Add new org improvements

This commit is contained in:
Rotimi Best
2023-09-11 11:47:30 +01:00
parent bd2f647ca1
commit 35817f44b9
22 changed files with 269 additions and 138 deletions
+2 -4
View File
@@ -12,6 +12,7 @@
import { getOrganizations } from '$lib/utils/services/org';
import { sendWelcomeEmail } from './utils';
import { currentOrg } from '$lib/utils/store/org';
import { generateSitename } from '$lib/utils/functions/org';
interface OnboardingField {
fullname?: string;
@@ -196,10 +197,7 @@
};
$: progress = Math.round((step / maxSteps) * 100);
$: fields.siteName = fields.siteName
?.toLowerCase()
?.replace(/\s+/g, '-')
?.replace(/[^a-zA-Z0-9-]/g, '');
$: fields.siteName = generateSitename(fields.siteName || '');
$: setOrgSiteName(fields.orgName, isSiteNameTouched);
$: {