ngx-sp-auth 4.2.3 → 4.2.4

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.
@@ -1735,10 +1735,9 @@ class PesquisaTelasGlobalService {
1735
1735
  .subscribe({
1736
1736
  next: res => {
1737
1737
  this._componentRef.instance.loading = false;
1738
- this._componentRef.instance.items = res.Telas;
1739
- this._componentRef.instance.telas = res._Telas;
1740
- this._componentRef.instance.menus = res.Menus;
1741
- this._componentRef.instance.submenus = res.Submenus;
1738
+ this._componentRef.instance.telas = res.MenuSubmenuTela.Telas;
1739
+ this._componentRef.instance.menus = res.MenuSubmenuTela.Menus;
1740
+ this._componentRef.instance.submenus = res.MenuSubmenuTela.Submenus;
1742
1741
  },
1743
1742
  error: err => {
1744
1743
  this._componentRef.instance.loading = false;
@@ -1834,10 +1833,7 @@ class PesquisaTelasGlobalService {
1834
1833
  // precisamos anexá-lo manualmente ao DOM
1835
1834
  const domElem = this._componentRef.hostView.rootNodes[0];
1836
1835
  document.body.appendChild(domElem);
1837
- // 5. Define a variável inicial do componente para evitar o loading infinito (neste primeiro momento)
1838
- // TODO: Melhorar esta validação
1839
- this._componentRef.instance.items = [];
1840
- // 6. Configura os listeners dos eventos do componente
1836
+ // 5. Configura os listeners dos eventos do componente
1841
1837
  // Em vez de tratar o hide() diretamente aqui, encaminhamos o evento para o Subject _onClose$ e guardamos a subscription para poder removê-la quando escondermos o componente.
1842
1838
  this._componentCloseSub = this._componentRef.instance.onClose.subscribe(() => this._onClose$.next());
1843
1839
  // Em vez de tratar o getTelas() diretamente aqui, encaminhamos o evento para o Subject _onSearch$ e guardamos a subscription para poder removê-la quando escondermos o componente.