@controleonline/ui-customers 1.0.83 → 1.0.84

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@controleonline/ui-customers",
3
- "version": "1.0.83",
3
+ "version": "1.0.84",
4
4
  "author": "ControleOnline",
5
5
  "description": "ControleOnline customers Quasar UI Component",
6
6
  "license": "MIT",
@@ -51,6 +51,9 @@ export const buildEmployeesContext = routeParams => {
51
51
  // whatever the link type, until a concrete link type is picked in the filter.
52
52
  peopleType: 'F',
53
53
  anyLinkType: true,
54
+ // List people_link rows where company_id = currentCompany (same source as
55
+ // My Company Details), not the global /people visibility wall.
56
+ listSource: 'company-links',
54
57
  detailsRouteParams: (person, selectedLinkType) => ({
55
58
  employeeId: normalizeEntityId(person?.id ?? person?.['@id']),
56
59
  contextKey: selectedLinkType === 'all' ? '' : String(selectedLinkType || ''),
@@ -31,6 +31,7 @@ describe('employees page context', () => {
31
31
  expect(context.modalTitleByType.courier).toBe('Cadastro de Entregador')
32
32
  expect(context.peopleType).toBe('F')
33
33
  expect(context.anyLinkType).toBe(true)
34
+ expect(context.listSource).toBe('company-links')
34
35
  })
35
36
 
36
37
  it('keeps courier as the default physical-person role when selected directly', () => {