- Removed direct state management from components and centralized it in WorkspaceService. - Updated ApartmentsPage, TenantsPage, LeasesPage, and DashboardPage to utilize WorkspaceService for data handling. - Introduced SessionService to manage user session state and authentication. - Simplified component templates to reflect new service-based architecture. - Removed unused ConfigService and its tests. - Added lease.html template for lease document generation. - Created app.routes.spec.ts for route mapping tests.
17 lines
450 B
HTML
17 lines
450 B
HTML
<section class="page-section apartments-page">
|
|
@if (!showForm()) {
|
|
<app-apartment-list
|
|
[apartments]="workspace.apartments()"
|
|
(addRequested)="openAddForm()"
|
|
(editRequested)="openEditForm($event)"
|
|
(deleteRequested)="workspace.deleteApartment($event)"
|
|
/>
|
|
} @else {
|
|
<app-apartment-form
|
|
[apartment]="editingApartment()"
|
|
(closed)="closeForm()"
|
|
(saved)="saveApartment($event)"
|
|
/>
|
|
}
|
|
</section>
|