Skip to content

Commit 91b4718

Browse files
committed
update: enhance resource permission management modal integration instructions
1 parent 33e9aca commit 91b4718

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

docs/en/modules/permission-management.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,17 @@ You can integrate this dialog into your own application to manage permissions fo
4545

4646
#### MVC / Razor Pages
4747

48-
Use the `abp.ModalManager` to open the resource permission management dialog:
48+
First, add the `resource-permission-management-modal.js` script to your page. This script registers the `ResourcePermissionManagement` modal class used by `abp.ModalManager`:
49+
50+
````html
51+
@section scripts
52+
{
53+
<abp-script src="/Pages/MyBook/Index.js"/>
54+
<abp-script src="/Pages/AbpPermissionManagement/resource-permission-management-modal.js" />
55+
}
56+
````
57+
58+
Then use the `abp.ModalManager` to open the resource permission management dialog:
4959

5060
````javascript
5161
var _resourcePermissionsModal = new abp.ModalManager({

0 commit comments

Comments
 (0)