Skip to content

Commit

Permalink
fix(orb-ui): #487 last modified field on policies list page (#844)
Browse files Browse the repository at this point in the history
* fix last modified date on agent policy list
  • Loading branch information
gpazuch authored Feb 8, 2022
1 parent 7d3bde9 commit 8947251
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { ActivatedRoute, Router } from '@angular/router';
import { Debounce } from 'app/shared/decorators/utils';
import { AgentPolicyDeleteComponent } from 'app/pages/datasets/policies.agent/delete/agent.policy.delete.component';
import { AgentPolicyDetailsComponent } from 'app/pages/datasets/policies.agent/details/agent.policy.details.component';
import { DatePipe } from '@angular/common';

@Component({
selector: 'ngx-agent-policy-list-component',
Expand Down Expand Up @@ -66,6 +67,7 @@ export class AgentPolicyListComponent implements OnInit, AfterViewInit, AfterVie
constructor(
private cdr: ChangeDetectorRef,
private dialogService: NbDialogService,
private datePipe: DatePipe,
private agentPoliciesService: AgentPoliciesService,
private notificationsService: NotificationsService,
private route: ActivatedRoute,
Expand Down Expand Up @@ -113,7 +115,8 @@ export class AgentPolicyListComponent implements OnInit, AfterViewInit, AfterVie
minWidth: 60,
},
{
prop: 'ts_created',
prop: 'ts_last_modified',
pipe: {transform: (value) => this.datePipe.transform(value, 'MMM d, y, HH:mm:ss z')},
name: 'Last Modified',
minWidth: 90,
flexGrow: 2,
Expand Down

0 comments on commit 8947251

Please sign in to comment.