|
@ -41,7 +41,7 @@ export class ActivitiesTableComponent implements OnChanges, OnDestroy { |
|
|
@Input() locale: string; |
|
|
@Input() locale: string; |
|
|
@Input() pageSize = DEFAULT_PAGE_SIZE; |
|
|
@Input() pageSize = DEFAULT_PAGE_SIZE; |
|
|
@Input() showActions: boolean; |
|
|
@Input() showActions: boolean; |
|
|
@Input() showSymbolColumn = true; |
|
|
@Input() showNameColumn = true; |
|
|
|
|
|
|
|
|
@Output() activityDeleted = new EventEmitter<string>(); |
|
|
@Output() activityDeleted = new EventEmitter<string>(); |
|
|
@Output() activityToClone = new EventEmitter<OrderWithAccount>(); |
|
|
@Output() activityToClone = new EventEmitter<OrderWithAccount>(); |
|
@ -86,7 +86,7 @@ export class ActivitiesTableComponent implements OnChanges, OnDestroy { |
|
|
'count', |
|
|
'count', |
|
|
'date', |
|
|
'date', |
|
|
'type', |
|
|
'type', |
|
|
'symbol', |
|
|
'nameWithSymbol', |
|
|
'quantity', |
|
|
'quantity', |
|
|
'unitPrice', |
|
|
'unitPrice', |
|
|
'fee', |
|
|
'fee', |
|
@ -98,9 +98,9 @@ export class ActivitiesTableComponent implements OnChanges, OnDestroy { |
|
|
'actions' |
|
|
'actions' |
|
|
]; |
|
|
]; |
|
|
|
|
|
|
|
|
if (!this.showSymbolColumn) { |
|
|
if (!this.showNameColumn) { |
|
|
this.displayedColumns = this.displayedColumns.filter((column) => { |
|
|
this.displayedColumns = this.displayedColumns.filter((column) => { |
|
|
return column !== 'symbol'; |
|
|
return column !== 'nameWithSymbol'; |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|