share certificate and share product maker checker
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user