diff --git a/src/app/remotes/announcement-list-active/announcement-list-active.component.html b/src/app/remotes/announcement-list-active/announcement-list-active.component.html index 57e20b5..c5b9bbe 100644 --- a/src/app/remotes/announcement-list-active/announcement-list-active.component.html +++ b/src/app/remotes/announcement-list-active/announcement-list-active.component.html @@ -1,63 +1,43 @@ - - + +
+ {{ limitText(announcement.title, 100) }}
-
-
+ + + +
Hallo Henry
+
diff --git a/src/app/shared/shared.module.ts b/src/app/shared/shared.module.ts index bb9d723..15a076c 100644 --- a/src/app/shared/shared.module.ts +++ b/src/app/shared/shared.module.ts @@ -18,6 +18,7 @@ import { InputTextareaModule } from 'primeng/inputtextarea' import { KeyFilterModule } from 'primeng/keyfilter' import { ListboxModule } from 'primeng/listbox' import { MultiSelectModule } from 'primeng/multiselect' +import { OverlayPanelModule } from 'primeng/overlaypanel' import { SelectButtonModule } from 'primeng/selectbutton' import { TableModule } from 'primeng/table' import { ToastModule } from 'primeng/toast' @@ -42,6 +43,7 @@ import { LabelResolver } from './label.resolver' KeyFilterModule, ListboxModule, MultiSelectModule, + OverlayPanelModule, ReactiveFormsModule, SelectButtonModule, TableModule, @@ -63,6 +65,7 @@ import { LabelResolver } from './label.resolver' KeyFilterModule, ListboxModule, MultiSelectModule, + OverlayPanelModule, ReactiveFormsModule, SelectButtonModule, TableModule, diff --git a/src/app/shared/utils.ts b/src/app/shared/utils.ts index de83ebf..a07d32b 100644 --- a/src/app/shared/utils.ts +++ b/src/app/shared/utils.ts @@ -1,7 +1,7 @@ import { AbstractControl, FormArray, FormGroup } from '@angular/forms' import { SelectItem } from 'primeng/api' -export function limitText(text: string, limit: number): string { +export function limitText(text: string | undefined, limit: number): string { if (text) { return text.length < limit ? text : text.substring(0, limit) + '...' } else {