From f17070ac4ff688748d1a885a742d8fb87eb8980b Mon Sep 17 00:00:00 2001 From: Artem Babak Date: Tue, 8 Dec 2020 11:03:49 +0200 Subject: [PATCH] Public edges uncommented --- .../pages/edge/edges-table-config.resolver.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/ui-ngx/src/app/modules/home/pages/edge/edges-table-config.resolver.ts b/ui-ngx/src/app/modules/home/pages/edge/edges-table-config.resolver.ts index 3a68d3c3d6..ba2a69ac6f 100644 --- a/ui-ngx/src/app/modules/home/pages/edge/edges-table-config.resolver.ts +++ b/ui-ngx/src/app/modules/home/pages/edge/edges-table-config.resolver.ts @@ -150,10 +150,10 @@ export class EdgesTableConfigResolver implements Resolve('customerTitle', 'customer.customer', '25%'), - /* new EntityTableColumn('customerIsPublic', 'edge.public', '60px', + new EntityTableColumn('customerIsPublic', 'edge.public', '60px', entity => { return checkBoxCell(entity.customerIsPublic); - }, () => ({}), false) */ + }, () => ({}), false) ); } return columns; @@ -176,12 +176,12 @@ export class EdgesTableConfigResolver implements Resolve> = []; if (edgeScope === 'tenant') { actions.push( - /* { + { name: this.translate.instant('edge.make-public'), icon: 'share', isEnabled: (entity) => (!entity.customerId || entity.customerId.id === NULL_UUID), onAction: ($event, entity) => this.makePublic($event, entity) - }, */ + }, { name: this.translate.instant('edge.assign-to-customer'), icon: 'assignment_ind', @@ -336,7 +336,7 @@ export class EdgesTableConfigResolver implements Resolve): boolean { switch (action.action) { - // case 'makePublic': - // this.makePublic(action.event, action.entity); - // return true; + case 'makePublic': + this.makePublic(action.event, action.entity); + return true; case 'assignToCustomer': this.assignToCustomer(action.event, [action.entity.id]); return true;