share certificate and share product maker checker

This commit is contained in:
2026-07-27 13:57:49 +05:30
parent d0536dbb11
commit 0c99dc3686
47 changed files with 2790 additions and 245 deletions
@@ -95,6 +95,14 @@ export class SharesButtonsConfiguration {
switch (status) {
case 'Active':
this.optionArray = [
{
name: 'Edit Details',
taskPermissionName: 'SUBMITEDIT_SHAREACCOUNT'
},
{
name: 'Share Certificate',
taskPermissionName: 'READ_SHAREACCOUNTPURCHASE'
},
{
name: 'Close',
taskPermissionName: 'CLOSE_SHAREACCOUNT'
@@ -128,4 +136,12 @@ export class SharesButtonsConfiguration {
const index = buttonNames.indexOf(name);
this.buttonsArray.splice(index, 1);
}
removeOption(name: string) {
const optionNames = this.optionArray.map((entry) => entry.name);
const index = optionNames.indexOf(name);
if (index > -1) {
this.optionArray.splice(index, 1);
}
}
}