mirror of https://github.com/ghostfolio/ghostfolio
Browse Source
* Extend assistant with search for asset profile * Extend search results by currency, symbol and asset sub class * Update changelogpull/2501/head
Thomas Kaul
1 year ago
committed by
GitHub
15 changed files with 201 additions and 43 deletions
@ -1,12 +1,16 @@ |
|||||
<a |
<a |
||||
#link |
#link |
||||
class="d-block px-2 py-1 text-truncate" |
class="d-block line-height-1 px-2 py-1 text-truncate" |
||||
[queryParams]="{ |
[queryParams]="queryParams" |
||||
dataSource: holding?.dataSource, |
[routerLink]="routerLink" |
||||
positionDetailDialog: true, |
|
||||
symbol: holding?.symbol |
|
||||
}" |
|
||||
[routerLink]="['/portfolio', 'holdings']" |
|
||||
(click)="onClick()" |
(click)="onClick()" |
||||
>{{ holding?.name }}</a |
><span><b>{{ item?.name }}</b></span> |
||||
|
<br /> |
||||
|
<small class="text-muted" |
||||
|
>{{ item?.symbol | gfSymbol }} · {{ item?.currency }}<ng-container |
||||
|
*ngIf="item?.assetSubClassString" |
||||
|
> |
||||
|
· {{ item?.assetSubClassString }}</ng-container |
||||
|
></small |
||||
|
></a |
||||
> |
> |
||||
|
@ -1,12 +1,13 @@ |
|||||
import { CommonModule } from '@angular/common'; |
import { CommonModule } from '@angular/common'; |
||||
import { NgModule } from '@angular/core'; |
import { NgModule } from '@angular/core'; |
||||
import { RouterModule } from '@angular/router'; |
import { RouterModule } from '@angular/router'; |
||||
|
import { GfSymbolModule } from '@ghostfolio/client/pipes/symbol/symbol.module'; |
||||
|
|
||||
import { AssistantListItemComponent } from './assistant-list-item.component'; |
import { AssistantListItemComponent } from './assistant-list-item.component'; |
||||
|
|
||||
@NgModule({ |
@NgModule({ |
||||
declarations: [AssistantListItemComponent], |
declarations: [AssistantListItemComponent], |
||||
exports: [AssistantListItemComponent], |
exports: [AssistantListItemComponent], |
||||
imports: [CommonModule, RouterModule] |
imports: [CommonModule, GfSymbolModule, RouterModule] |
||||
}) |
}) |
||||
export class GfAssistantListItemModule {} |
export class GfAssistantListItemModule {} |
||||
|
@ -1,5 +1,12 @@ |
|||||
import { Position } from '@ghostfolio/common/interfaces'; |
import { UniqueAsset } from '@ghostfolio/common/interfaces'; |
||||
|
|
||||
|
export interface ISearchResultItem extends UniqueAsset { |
||||
|
assetSubClassString: string; |
||||
|
currency: string; |
||||
|
name: string; |
||||
|
} |
||||
|
|
||||
export interface ISearchResults { |
export interface ISearchResults { |
||||
holdings: Position[]; |
assetProfiles: ISearchResultItem[]; |
||||
|
holdings: ISearchResultItem[]; |
||||
} |
} |
||||
|
Loading…
Reference in new issue