remove subdomain feature

This commit is contained in:
Krrish Ghimire
2026-07-06 23:04:16 +05:45
parent ea69080710
commit 708cac6848
6 changed files with 13 additions and 34 deletions

View File

@@ -21,15 +21,6 @@ import { SiteService } from '../../core/services/site.service';
<mat-error>Name is required</mat-error>
</mat-form-field>
<mat-form-field appearance="outline" class="w-full">
<mat-label>Subdomain</mat-label>
<input matInput formControlName="subdomain" placeholder="my-site" />
<mat-error *ngIf="form.get('subdomain')?.hasError('required')">Subdomain is required</mat-error>
<mat-error *ngIf="form.get('subdomain')?.hasError('pattern')">
Lowercase letters, numbers, and hyphens only
</mat-error>
</mat-form-field>
<mat-form-field appearance="outline" class="w-full">
<mat-label>Description (optional)</mat-label>
<textarea matInput formControlName="description" rows="3" placeholder="What's your site about?"></textarea>
@@ -51,7 +42,6 @@ export class CreateSiteDialog {
form = this.fb.group({
name: ['', Validators.required],
subdomain: ['', [Validators.pattern(/^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$/)]],
description: [''],
});
loading = false;