barsa-tiles 1.0.339 → 1.0.340
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/fesm2020/barsa-tiles.mjs
CHANGED
|
@@ -94,7 +94,7 @@ class TilesService {
|
|
|
94
94
|
const appTiles = [];
|
|
95
95
|
if (allApps) {
|
|
96
96
|
appTilesTitle.forEach((c) => {
|
|
97
|
-
const selectedTile = this.findAppTileWithKey(allApps, '
|
|
97
|
+
const selectedTile = this.findAppTileWithKey(allApps, 'A_App_AppKey', c);
|
|
98
98
|
if (selectedTile) {
|
|
99
99
|
appTiles.push(selectedTile);
|
|
100
100
|
}
|
|
@@ -108,7 +108,7 @@ class TilesService {
|
|
|
108
108
|
return;
|
|
109
109
|
}
|
|
110
110
|
BarsaApi.Bw.RunBlMethodAsync({
|
|
111
|
-
Parameters: [appTiles.map((c) => c.AppTile.Id)],
|
|
111
|
+
Parameters: [appTiles.map((c) => (c.AppTile?.Id ? c.AppTile?.Id : c.Id))],
|
|
112
112
|
Method: 'RefreshAppTiles',
|
|
113
113
|
SuccessFn: (result) => {
|
|
114
114
|
result.MoDataList.forEach((c) => this.updateAppTile(allApps, c));
|
|
@@ -518,14 +518,11 @@ class TilesService {
|
|
|
518
518
|
return;
|
|
519
519
|
}
|
|
520
520
|
selectedTile = appGroup.navigatorTiles.find((c) => BarsaApi.Common.Util.TryGetValue(c, key, null) === value);
|
|
521
|
-
if (selectedTile) {
|
|
522
|
-
return;
|
|
523
|
-
}
|
|
524
521
|
appGroup.$Children?.forEach((subGroup) => {
|
|
525
|
-
selectedTile = subGroup.navigatorTiles.find((c) => BarsaApi.Common.Util.TryGetValue(c, key, null) === value);
|
|
526
522
|
if (selectedTile) {
|
|
527
523
|
return;
|
|
528
524
|
}
|
|
525
|
+
selectedTile = subGroup.navigatorTiles.find((c) => BarsaApi.Common.Util.TryGetValue(c, key, null) === value);
|
|
529
526
|
});
|
|
530
527
|
});
|
|
531
528
|
return selectedTile;
|