Browse Source
Remove resource permissions modal and related actions from roles and users
pull/24374/head
maliming
6 months ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
2 changed files with
1 additions and
30 deletions
-
modules/identity/src/Volo.Abp.Identity.Web/Pages/Identity/Roles/index.js
-
modules/identity/src/Volo.Abp.Identity.Web/Pages/Identity/Users/index.js
|
|
|
@ -1,15 +1,10 @@ |
|
|
|
(function ($) { |
|
|
|
var l = abp.localization.getResource('AbpIdentity'); |
|
|
|
var rl = abp.localization.getResource('AbpPermissionManagement'); |
|
|
|
|
|
|
|
var _identityRoleAppService = volo.abp.identity.identityRole; |
|
|
|
var _permissionsModal = new abp.ModalManager( |
|
|
|
abp.appPath + 'AbpPermissionManagement/PermissionManagementModal' |
|
|
|
); |
|
|
|
var _resourcePermissionsModal = new abp.ModalManager({ |
|
|
|
viewUrl: abp.appPath + "AbpPermissionManagement/ResourcePermissionManagementModal", |
|
|
|
modalClass: 'ResourcePermissionManagement' |
|
|
|
}); |
|
|
|
var _editModal = new abp.ModalManager( |
|
|
|
abp.appPath + 'Identity/Roles/EditModal' |
|
|
|
); |
|
|
|
@ -47,16 +42,6 @@ |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
text: rl('ResourcePermissions'), |
|
|
|
action: function (data) { |
|
|
|
_resourcePermissionsModal.open({ |
|
|
|
resourceName: 'Volo.Abp.Identity.IdentityRole', |
|
|
|
resourceKey: data.record.id, |
|
|
|
resourceDisplayName: data.record.name + '(Volo.Abp.Identity.IdentityRole)' |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
text: l('Delete'), |
|
|
|
visible: function (data) { |
|
|
|
|
|
|
|
@ -1,6 +1,5 @@ |
|
|
|
(function ($) { |
|
|
|
var l = abp.localization.getResource('AbpIdentity'); |
|
|
|
var rl = abp.localization.getResource('AbpPermissionManagement'); |
|
|
|
|
|
|
|
var _identityUserAppService = volo.abp.identity.identityUser; |
|
|
|
|
|
|
|
@ -51,10 +50,7 @@ |
|
|
|
var _permissionsModal = new abp.ModalManager( |
|
|
|
abp.appPath + 'AbpPermissionManagement/PermissionManagementModal' |
|
|
|
); |
|
|
|
var _resourcePermissionsModal = new abp.ModalManager({ |
|
|
|
viewUrl: abp.appPath + "AbpPermissionManagement/ResourcePermissionManagementModal", |
|
|
|
modalClass: 'ResourcePermissionManagement' |
|
|
|
}); |
|
|
|
|
|
|
|
var _dataTable = null; |
|
|
|
|
|
|
|
abp.ui.extensions.entityActions.get('identity.user').addContributor( |
|
|
|
@ -85,16 +81,6 @@ |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
text: rl('ResourcePermissions'), |
|
|
|
action: function (data) { |
|
|
|
_resourcePermissionsModal.open({ |
|
|
|
resourceName: 'Volo.Abp.Identity.IdentityUser', |
|
|
|
resourceKey: data.record.id, |
|
|
|
resourceDisplayName: data.record.name + '(Volo.Abp.Identity.IdentityUser)' |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
text: l('Delete'), |
|
|
|
visible: function(data) { |
|
|
|
|