Commit e7e7b1ff authored by Sebastian Chicoma's avatar Sebastian Chicoma

Se agregó el filtro de estado

parent d30e5802
...@@ -132,11 +132,10 @@ const columnTemplateArray = [ ...@@ -132,11 +132,10 @@ const columnTemplateArray = [
} }
]; ];
const fieldFilters = [ const fieldFilters = [
new FieldFilter('agent_code', 'id', 'id', 'number', undefined), new FieldFilter('agent_code', 'id', 'id', 'number', undefined),
new FieldFilter('agent_name', 'name', 'name', 'string', undefined), new FieldFilter('agent_name', 'name', 'name', 'string', undefined),
new FieldFilter('agent_status', 'status', 'status', 'select', []), new FieldFilter('agent_status', 'status', 'status', 'valpos', ({ 'DP': 'label.deployed', 'PS': 'label.sync-pending' }) as any),
]; ];
@Component({ @Component({
...@@ -310,7 +309,7 @@ export class AgentListComponent implements OnInit { ...@@ -310,7 +309,7 @@ export class AgentListComponent implements OnInit {
synchronize(item) { synchronize(item) {
let user = (this.authenticationService.currentUserValue ? this.authenticationService.currentUserValue.username : 'admin'); let user = (this.authenticationService.currentUserValue ? this.authenticationService.currentUserValue.username : 'admin');
this.agentService.synchronize(item.id, user).pipe(first()).subscribe(() => { this.agentService.synchronize(item.id, user).pipe(first()).subscribe(() => {
this.notificationService.showMessage(this.translateService.instant("agent.synchronize.success"), undefined, NotificationType.success); this.notificationService.showMessage(this.translateService.instant("agent.synchronize.success"), undefined, NotificationType.success);
this.onRefresh(); this.onRefresh();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment