Feature/migrate assistant component to control flow (#4591)
* Migrate to control flow * Update changelog
This commit is contained in:
parent
56fcafaa12
commit
53a81b3c2b
@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- Renamed `User` to `user` in the `Subscription` database schema
|
- Renamed `User` to `user` in the `Subscription` database schema
|
||||||
|
- Migrated the `@ghostfolio/ui/assistant` component to control flow
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
@ -15,28 +15,26 @@
|
|||||||
[formControl]="searchFormControl"
|
[formControl]="searchFormControl"
|
||||||
[placeholder]="placeholder"
|
[placeholder]="placeholder"
|
||||||
/>
|
/>
|
||||||
<div
|
@if (deviceType !== 'mobile' && !searchFormControl.value) {
|
||||||
*ngIf="deviceType !== 'mobile' && !searchFormControl.value"
|
<div class="hot-key-hint mx-1 px-1">/</div>
|
||||||
class="hot-key-hint mx-1 px-1"
|
}
|
||||||
>
|
@if (searchFormControl.value) {
|
||||||
/
|
|
||||||
</div>
|
|
||||||
<button
|
<button
|
||||||
*ngIf="searchFormControl.value"
|
|
||||||
class="h-100 no-min-width px-3 rounded-0"
|
class="h-100 no-min-width px-3 rounded-0"
|
||||||
mat-button
|
mat-button
|
||||||
(click)="initialize()"
|
(click)="initialize()"
|
||||||
>
|
>
|
||||||
<ion-icon class="m-0" name="close-circle-outline" />
|
<ion-icon class="m-0" name="close-circle-outline" />
|
||||||
</button>
|
</button>
|
||||||
|
} @else {
|
||||||
<button
|
<button
|
||||||
*ngIf="!searchFormControl.value"
|
|
||||||
class="h-100 no-min-width px-3 rounded-0"
|
class="h-100 no-min-width px-3 rounded-0"
|
||||||
mat-button
|
mat-button
|
||||||
(click)="onCloseAssistant()"
|
(click)="onCloseAssistant()"
|
||||||
>
|
>
|
||||||
<ion-icon class="m-0" name="close-outline" />
|
<ion-icon class="m-0" name="close-outline" />
|
||||||
</button>
|
</button>
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
*ngIf="isLoading || searchFormControl.value"
|
*ngIf="isLoading || searchFormControl.value"
|
||||||
@ -51,8 +49,8 @@
|
|||||||
(clicked)="onCloseAssistant()"
|
(clicked)="onCloseAssistant()"
|
||||||
/>
|
/>
|
||||||
<ng-container *ngIf="searchResults?.holdings?.length === 0">
|
<ng-container *ngIf="searchResults?.holdings?.length === 0">
|
||||||
|
@if (isLoading) {
|
||||||
<ngx-skeleton-loader
|
<ngx-skeleton-loader
|
||||||
*ngIf="isLoading"
|
|
||||||
animation="pulse"
|
animation="pulse"
|
||||||
class="mx-2"
|
class="mx-2"
|
||||||
[theme]="{
|
[theme]="{
|
||||||
@ -60,7 +58,9 @@
|
|||||||
width: '100%'
|
width: '100%'
|
||||||
}"
|
}"
|
||||||
/>
|
/>
|
||||||
<div *ngIf="!isLoading" class="px-2 py-1" i18n>No entries...</div>
|
} @else {
|
||||||
|
<div class="px-2 py-1" i18n>No entries...</div>
|
||||||
|
}
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="hasPermissionToAccessAdminControl" class="mt-3">
|
<div *ngIf="hasPermissionToAccessAdminControl" class="mt-3">
|
||||||
@ -72,8 +72,8 @@
|
|||||||
(clicked)="onCloseAssistant()"
|
(clicked)="onCloseAssistant()"
|
||||||
/>
|
/>
|
||||||
<ng-container *ngIf="searchResults?.assetProfiles?.length === 0">
|
<ng-container *ngIf="searchResults?.assetProfiles?.length === 0">
|
||||||
|
@if (isLoading) {
|
||||||
<ngx-skeleton-loader
|
<ngx-skeleton-loader
|
||||||
*ngIf="isLoading"
|
|
||||||
animation="pulse"
|
animation="pulse"
|
||||||
class="mx-2"
|
class="mx-2"
|
||||||
[theme]="{
|
[theme]="{
|
||||||
@ -81,7 +81,9 @@
|
|||||||
width: '100%'
|
width: '100%'
|
||||||
}"
|
}"
|
||||||
/>
|
/>
|
||||||
<div *ngIf="!isLoading" class="px-2 py-1" i18n>No entries...</div>
|
} @else {
|
||||||
|
<div class="px-2 py-1" i18n>No entries...</div>
|
||||||
|
}
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user