Skip to content

Commit

Permalink
fix(authServ): repair auth server page in BO
Browse files Browse the repository at this point in the history
  • Loading branch information
tleon committed Sep 29, 2023
1 parent 794ea43 commit f0a53be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ protected function getColumns(): ColumnCollectionInterface
])
)
->add(
(new ToggleColumn('active'))
(new ToggleColumn('enabled'))
->setName($this->trans('Api access state', [], 'Admin.Global'))
->setOptions([
'field' => 'active',
'field' => 'enabled',
'primary_field' => 'id_api_access',
'route' => 'admin_api_accesses_toggle_active',
'route_param_name' => 'apiAccessId',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ describe('API : Internal Auth Server - Resource Endpoint', async () => {
const jsonResponse = await apiResponse.json();
expect(jsonResponse).to.have.property('id');
expect(jsonResponse.id).to.be.a('number');
expect(jsonResponse).to.have.property('active');
expect(jsonResponse.active).to.be.a('boolean');
expect(jsonResponse).to.have.property('enabled');
expect(jsonResponse.enabled).to.be.a('boolean');
});
});
});

0 comments on commit f0a53be

Please sign in to comment.