barsa-novin-ray-core 2.3.112 → 2.3.113

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.
@@ -5326,7 +5326,7 @@ function searchNavigatorInApp(app, keyword) {
5326
5326
  if (node.Caption && node.Caption.toLowerCase().includes(keyword.toLowerCase())) {
5327
5327
  let url = '';
5328
5328
  if (!node.IsRoot && node.ReportId && node.ReportId !== '0') {
5329
- url = `#/application/${app.Id}/report/${node.FolderId}__${node.Caption}__${node.ReportId}`;
5329
+ url = `#/application/report/${node.FolderId}__${node.Caption}__${node.ReportId}`;
5330
5330
  }
5331
5331
  else if (node.IsRoot) {
5332
5332
  url = `#/application/${app.Id}`;
@@ -5515,7 +5515,7 @@ class ApplicationCtrlrService {
5515
5515
  selectSystemCommand(command) {
5516
5516
  this.selectSystemCommandId(command.Key);
5517
5517
  new Promise((resolve, _reject) => {
5518
- this._routeToSelectedSystem();
5518
+ // this._routeToSystem(this._selectedSystemId$.getValue());
5519
5519
  if (command.DynamicCommand) {
5520
5520
  BarsaApi.Common.CustomCodeManager.RunDynamicCommand(command.Key, {}, resolve);
5521
5521
  }
@@ -5603,6 +5603,7 @@ class ApplicationCtrlrService {
5603
5603
  searchItemClick(data) {
5604
5604
  if (data.original.IsRoot) {
5605
5605
  this._routeToSystem(data.appId);
5606
+ this.sidebarToggled(true);
5606
5607
  }
5607
5608
  else if (data.source === 'Command') {
5608
5609
  this.selectSystemCommand(data.original);
@@ -5610,6 +5611,7 @@ class ApplicationCtrlrService {
5610
5611
  else if (data.source === 'Navigator') {
5611
5612
  if (data.original.ReportId === '0') {
5612
5613
  this._routeToSystem(data.appId);
5614
+ this.sidebarToggled(true);
5613
5615
  this.selectNavGroup(data.id, false);
5614
5616
  }
5615
5617
  else {
@@ -5618,8 +5620,7 @@ class ApplicationCtrlrService {
5618
5620
  }
5619
5621
  }
5620
5622
  _routeToSystem(systemId) {
5621
- this.selectedSystem(systemId);
5622
- this._routeToSelectedSystem();
5623
+ this.systemChange(systemId);
5623
5624
  }
5624
5625
  getLastActivatedRoute() {
5625
5626
  let route = this._router.routerState.root;
@@ -5629,15 +5630,7 @@ class ApplicationCtrlrService {
5629
5630
  return route;
5630
5631
  }
5631
5632
  _routeToReport(navGroupId, caption, reportId) {
5632
- this._router.navigate([
5633
- 'application',
5634
- this._selectedSystemId$.getValue(),
5635
- 'report',
5636
- navGroupId + '__' + caption + '__' + reportId
5637
- ]);
5638
- }
5639
- _routeToSelectedSystem() {
5640
- this._router.navigate(['application', this._selectedSystemId$.getValue()]);
5633
+ this._router.navigate(['application', 'report', navGroupId + '__' + caption + '__' + reportId]);
5641
5634
  }
5642
5635
  flattenLeafCommands(commands) {
5643
5636
  const result = [];