diff --git a/libs/ui/src/lib/assistant/assistant.component.ts b/libs/ui/src/lib/assistant/assistant.component.ts index beefcc566..d8c3dcc2e 100644 --- a/libs/ui/src/lib/assistant/assistant.component.ts +++ b/libs/ui/src/lib/assistant/assistant.component.ts @@ -8,6 +8,7 @@ import { DateRange } from '@ghostfolio/common/types'; import { translate } from '@ghostfolio/ui/i18n'; import { FocusKeyManager } from '@angular/cdk/a11y'; +import { CommonModule } from '@angular/common'; import { CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionStrategy, @@ -58,6 +59,7 @@ import { @Component({ changeDetection: ChangeDetectionStrategy.OnPush, imports: [ + CommonModule, FormsModule, GfAssetProfileIconComponent, GfAssistantListItemComponent, diff --git a/libs/ui/src/lib/assistant/assistant.html b/libs/ui/src/lib/assistant/assistant.html index dda13bfc1..33b4db3ff 100644 --- a/libs/ui/src/lib/assistant/assistant.html +++ b/libs/ui/src/lib/assistant/assistant.html @@ -15,87 +15,76 @@ [formControl]="searchFormControl" [placeholder]="placeholder" /> - @if (deviceType !== 'mobile' && !searchFormControl.value) { -
/
- } - @if (searchFormControl.value) { - - } @else { - - } +
+ / +
+ + - @if (isLoading || searchFormControl.value) { -
-
-
Holdings
- @for ( - searchResultItem of searchResults?.holdings; - track searchResultItem - ) { - - } - @if (searchResults?.holdings?.length === 0) { - @if (isLoading) { - - } @else { -
No entries...
- } - } -
- @if (hasPermissionToAccessAdminControl) { -
-
Asset Profiles
- @for ( - searchResultItem of searchResults?.assetProfiles; - track searchResultItem - ) { - - } - @if (searchResults?.assetProfiles?.length === 0) { - @if (isLoading) { - - } @else { -
No entries...
- } - } -
- } +
+
+
Holdings
+ + + +
No entries...
+
- } +
+
Asset Profiles
+ + + +
No entries...
+
+
+
@if (!searchFormControl.value) { @@ -121,14 +110,12 @@ @for (account of accounts; track account.id) {
- @if (account.Platform?.url) { - - } - {{ account.name }} + {{ account.name }}
}