Skip to content

Commit 5b17135

Browse files
committed
update: enhance resource permission management modal initialization
1 parent f4229b2 commit 5b17135

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/en/modules/permission-management.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,10 @@ You can integrate this dialog into your own application to manage permissions fo
4848
Use the `abp.ModalManager` to open the resource permission management dialog:
4949

5050
````javascript
51-
var _resourcePermissionsModal = new abp.ModalManager(
52-
abp.appPath + 'AbpPermissionManagement/ResourcePermissionManagementModal'
53-
);
51+
var _resourcePermissionsModal = new abp.ModalManager({
52+
viewUrl: abp.appPath + "AbpPermissionManagement/ResourcePermissionManagementModal",
53+
modalClass: 'ResourcePermissionManagement'
54+
});
5455

5556
// Open the modal for a specific resource
5657
_resourcePermissionsModal.open({

0 commit comments

Comments
 (0)