@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.
@@ -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 = 2000;
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: true,
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
- return this.cms.ESP({
6587
- SPN: 'Permission_addRoleResourcePermissionRef',
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({