feat: view savings transaction page (#933)

Fixes: #932
This commit is contained in:
Karan Takalkar
2020-06-27 17:31:19 +05:30
committed by GitHub
parent 8e86ccab8f
commit 6ed67a763d
15 changed files with 298 additions and 6 deletions
@@ -0,0 +1,8 @@
<h1 mat-dialog-title>Undo Transaction</h1>
<div mat-dialog-content>
<p>Are you sure you want to undo this transaction ?</p>
</div>
<mat-dialog-actions align="end">
<button mat-raised-button mat-dialog-close>Cancel</button>
<button mat-raised-button color="warn" [mat-dialog-close]="{ confirm: true }">Confirm</button>
</mat-dialog-actions>
@@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { UndoTransactionDialogComponent } from './undo-transaction-dialog.component';
describe('UndoTransactionDialogComponent', () => {
let component: UndoTransactionDialogComponent;
let fixture: ComponentFixture<UndoTransactionDialogComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ UndoTransactionDialogComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(UndoTransactionDialogComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
@@ -0,0 +1,20 @@
/** Angular Imports */
import { Component } from '@angular/core';
import { MatDialogRef } from '@angular/material';
/**
* Undo transaction dialog component.
*/
@Component({
selector: 'mifosx-undo-transaction-dialog',
templateUrl: './undo-transaction-dialog.component.html',
styleUrls: ['./undo-transaction-dialog.component.scss']
})
export class UndoTransactionDialogComponent {
/**
* @param {MatDialogRef} dialogRef Component reference to dialog.
*/
constructor(public dialogRef: MatDialogRef<UndoTransactionDialogComponent>) { }
}