Files
cbsnexora/src/app/shares/shares-account-actions/shares-account-actions.component.ts
T
2020-08-13 09:56:25 +05:30

52 lines
1.3 KiB
TypeScript

/** Angular Imports */
import { Component } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
/** Custom Services */
import { SharesService } from '../shares.service';
/**
* Shares Account Actions Component
*/
@Component({
selector: 'mifosx-shares-account-actions',
templateUrl: './shares-account-actions.component.html',
styleUrls: ['./shares-account-actions.component.scss']
})
export class SharesAccountActionsComponent {
/** Shares Account Data */
sharesAccountData: any;
/** Flag object to store possible actions and render appropriate UI to the user */
actions: {
'Approve': boolean
'Reject': boolean
'Close': boolean
'Activate': boolean
'Undo Approval': boolean
'Apply Additional Shares': boolean
'Redeem Shares': boolean
'Approve Additional Shares': boolean
'Reject Additional Shares': boolean
} = {
'Approve': false,
'Reject': false,
'Close': false,
'Activate': false,
'Undo Approval': false,
'Apply Additional Shares': false,
'Redeem Shares': false,
'Approve Additional Shares': false,
'Reject Additional Shares': false
};
/**
* @param {ActivatedRoute} route Activated Route
*/
constructor(private route: ActivatedRoute) {
const name = this.route.snapshot.params['name'];
this.actions[name] = true;
}
}