@@ -3,7 +3,7 @@ import { Component } from '@angular/core';
|
||||
import { Router, ActivatedRoute } from '@angular/router';
|
||||
|
||||
/**
|
||||
* Create savings account actions component.
|
||||
* Savings account actions component.
|
||||
*/
|
||||
@Component({
|
||||
selector: 'mifosx-saving-account-actions',
|
||||
@@ -12,15 +12,21 @@ import { Router, ActivatedRoute } from '@angular/router';
|
||||
})
|
||||
export class SavingAccountActionsComponent {
|
||||
|
||||
/** flag object to store possible actions and render appropriate UI to the user */
|
||||
actions: { transaction: boolean } = { transaction: false };
|
||||
/** Shares Account Data */
|
||||
sharesAccountData: any;
|
||||
/** Flag object to store possible actions and render appropriate UI to the user */
|
||||
actions: {
|
||||
'Approve': boolean
|
||||
} = {
|
||||
'Approve': false
|
||||
};
|
||||
|
||||
constructor(private router: Router,
|
||||
private route: ActivatedRoute) {
|
||||
this.route.params.subscribe(params => {
|
||||
this.actions[params['action']] = true;
|
||||
});
|
||||
/**
|
||||
* @param {ActivatedRoute} route Activated Route
|
||||
*/
|
||||
constructor(private route: ActivatedRoute) {
|
||||
const name = this.route.snapshot.params['name'];
|
||||
this.actions[name] = true;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user