barsa-tiles 2.3.145 → 2.3.148

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.
@@ -389,19 +389,22 @@ class TilesService {
389
389
  const g = this._findCanonicalAppTileGroup(allApps, groupId);
390
390
  return g ? this._isAppTileGroupTilesLoaded(g) : !!this._appTileGroupLoaded[groupId];
391
391
  }
392
- loadAppTileGroupsById(appTileGroupId) {
392
+ loadAppTileGroupsById(appTileGroupId, forceReload = false) {
393
393
  const allApps = this._store.appTileGroups();
394
394
  if (!allApps) {
395
395
  return;
396
396
  }
397
397
  const selectedAppTilegroup = this._findCanonicalAppTileGroup(allApps, appTileGroupId);
398
- if (!selectedAppTilegroup || this._isAppTileGroupTilesLoaded(selectedAppTilegroup)) {
398
+ if (!selectedAppTilegroup) {
399
+ return;
400
+ }
401
+ if (!this._isAppTileGroupTilesLoaded(selectedAppTilegroup) && !forceReload) {
399
402
  return;
400
403
  }
401
404
  const callback = () => {
402
405
  this._nextAllAppTileGroups(allApps);
403
406
  };
404
- this._loadAppTilesByAppTileGroupSetting(selectedAppTilegroup, callback);
407
+ selectedAppTilegroup && this._loadAppTilesByAppTileGroupSetting(selectedAppTilegroup, callback);
405
408
  }
406
409
  saveTilesStackContent(tilesStackContent) {
407
410
  const userPortalSettings = this._portalService.userPortalSettings['UserPortalSettings'];
@@ -771,7 +774,7 @@ class TilesService {
771
774
  return false;
772
775
  }
773
776
  _isAppTileGroupTilesLoaded(g) {
774
- return (!!g.$TilesLoaded || !!this._appTileGroupLoaded[g.Id]);
777
+ return !!g.$TilesLoaded || !!this._appTileGroupLoaded[g.Id];
775
778
  }
776
779
  /** Replaces the node with the same {@link AppTileGroup#Id} anywhere under {@link $Children}. */
777
780
  _replaceAppTileGroupInTreeList(list, appTileGroup) {
@@ -3881,7 +3884,7 @@ class ShellbarComponent extends BaseComponent {
3881
3884
  });
3882
3885
  }
3883
3886
  onAppTileGroupChange(appTileGroupId) {
3884
- this._tilesService.loadAppTileGroupsById(appTileGroupId);
3887
+ this._tilesService.loadAppTileGroupsById(appTileGroupId, true);
3885
3888
  }
3886
3889
  onCultureChange(culture) {
3887
3890
  this._changeCulture(culture);