Skip to content

Commit 4b2ea4a

Browse files
authored
Merge pull request #1304 from bcgov/dev
Dev
2 parents 6c6373c + 49ccb20 commit 4b2ea4a

3 files changed

Lines changed: 14 additions & 2 deletions

File tree

applications/Unity.GrantManager/modules/Unity.Identity.Web/src/Pages/Identity/Roles/index.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,17 @@ $(function () {
120120

121121
$.fn.dataTable.Buttons.defaults.dom.button.className = 'btn flex-none';
122122
let actionButtons = [
123+
{
124+
text: '<i class="fl fl-add-to align-middle"></i> <span>' + l('NewRole') + '</span>',
125+
titleAttr: l('NewRole'),
126+
id: 'CreateRoleButton',
127+
className: 'btn-light rounded-1',
128+
available: () => abp.auth.isGranted('AbpIdentity.Roles.Create'),
129+
action: (e, dt, node, config) => {
130+
e.preventDefault();
131+
_createModal.open();
132+
}
133+
},
123134
...commonTableActionButtons(l('Roles'))
124135
];
125136

applications/Unity.GrantManager/src/Unity.GrantManager.Application/ApplicationForms/ApplicationFormVersionAppService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,9 @@ private async Task UpdateApplicationFormVersionFields(ApplicationFormVersion app
256256
}
257257

258258
if (applicationFormVersion.Id == Guid.Empty)
259-
await _formVersionRepository.InsertAsync(applicationFormVersion);
259+
await _formVersionRepository.InsertAsync(applicationFormVersion, true);
260260
else
261-
await _formVersionRepository.UpdateAsync(applicationFormVersion);
261+
await _formVersionRepository.UpdateAsync(applicationFormVersion, true);
262262
}
263263

264264
public async Task<ApplicationFormVersionDto?> GetByChefsFormVersionId(Guid chefsFormVersionId)

applications/Unity.GrantManager/src/Unity.GrantManager.Domain/Permissions/PermissionGrantsDataSeeder.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ await _permissionDataSeeder.SeedAsync(RolePermissionValueProvider.ProviderName,
141141
GrantApplicationPermissions.Comments.Add,
142142
GrantManagerPermissions.Organizations.Default,
143143
GrantManagerPermissions.Organizations.ManageProfiles,
144+
GrantApplicationPermissions.Approvals.BulkApplicationApproval,
144145

145146
.. ReviewAndAssessment_CommonPermissions,
146147
.. ApplicantInfo_CommonPermissions,

0 commit comments

Comments
 (0)