@brggroup/share-lib 0.1.48 → 0.1.49
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/fesm2022/brggroup-share-lib.mjs +4 -6
- package/fesm2022/brggroup-share-lib.mjs.map +1 -1
- package/lib/ADMIN/component/permission/permission.service.d.ts.map +1 -1
- package/lib/components/custom-noti/custom-noti.component.d.ts +1 -1
- package/lib/components/custom-noti/custom-noti.component.d.ts.map +1 -1
- package/lib/services/{notification.service.d.ts → custom-notification.service.d.ts} +1 -1
- package/lib/services/custom-notification.service.d.ts.map +1 -0
- package/lib/services/noti.service.d.ts +1 -1
- package/lib/services/noti.service.d.ts.map +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -1
- package/public-api.d.ts.map +1 -1
- package/lib/services/notification.service.d.ts.map +0 -1
|
@@ -281,7 +281,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImpor
|
|
|
281
281
|
|
|
282
282
|
class CustomNotiService {
|
|
283
283
|
notification;
|
|
284
|
-
static defaultDuration =
|
|
284
|
+
static defaultDuration = 3000;
|
|
285
285
|
static defaultPlacement = 'topRight';
|
|
286
286
|
globalTemplate;
|
|
287
287
|
constructor(notification) {
|
|
@@ -481,7 +481,7 @@ class NotiService {
|
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
483
|
this.notification.error('Lỗi phát sinh', errorMsg, {
|
|
484
|
-
showDetail:
|
|
484
|
+
showDetail: !!_data?.Data,
|
|
485
485
|
onDetail: () => {
|
|
486
486
|
this.modal.error({
|
|
487
487
|
nzTitle: 'Chi tiết lỗi',
|
|
@@ -6583,10 +6583,8 @@ class PermissionService extends HTTPService {
|
|
|
6583
6583
|
});
|
|
6584
6584
|
}
|
|
6585
6585
|
addRoleResourcePermissionRef(roleId, permissionCodes) {
|
|
6586
|
-
|
|
6587
|
-
|
|
6588
|
-
Params: [roleId, permissionCodes],
|
|
6589
|
-
});
|
|
6586
|
+
let pr = new HttpParams().append('roleId', roleId).append('permissionCodes', permissionCodes);
|
|
6587
|
+
return this.postParams(AppGlobals.apiEndpoint + '/api/App_Permission/addRoleResourcePermissionRef', pr);
|
|
6590
6588
|
}
|
|
6591
6589
|
getRolePermissions(roleId) {
|
|
6592
6590
|
return this.cms.ESP({
|