ps-toolkit-ui 1.6.21 → 1.6.22
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/bundles/ps-toolkit-ui.umd.js +1 -1
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/components/sidebar/sidebar.component.js +2 -2
- package/fesm2015/ps-toolkit-ui.js +1 -1
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -2229,7 +2229,7 @@
|
|
|
2229
2229
|
SidebarComponent.prototype.getSidebar = function (parentId) {
|
|
2230
2230
|
var _this = this;
|
|
2231
2231
|
if (parentId === void 0) { parentId = null; }
|
|
2232
|
-
return this.currentData.permissions.filter(function (x) { return x.Type === exports.PermissionTypeEnum.Item && x.ParentId === parentId; }).map(function (s) {
|
|
2232
|
+
return this.currentData.permissions.filter(function (x) { return x.Type === exports.PermissionTypeEnum.Item && x.ParentId === parentId && x.Area !== null; }).map(function (s) {
|
|
2233
2233
|
return new SidebarClass(_this.l, s.Name, s.Controller, s.Action, s.Url, s.Icon, _this.getSidebar(s.Id));
|
|
2234
2234
|
});
|
|
2235
2235
|
};
|