+8
@@ -0,0 +1,8 @@
|
||||
<h1 mat-dialog-title>Unassign Role</h1>
|
||||
<div mat-dialog-content>
|
||||
<p>Are you sure you want to unassign role for client member with id: {{ data.id }} ?</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>
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { UnassignRoleDialogComponent } from './unassign-role-dialog.component';
|
||||
|
||||
describe('UnassignRoleDialogComponent', () => {
|
||||
let component: UnassignRoleDialogComponent;
|
||||
let fixture: ComponentFixture<UnassignRoleDialogComponent>;
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ UnassignRoleDialogComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(UnassignRoleDialogComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
/** Angular Imports */
|
||||
import { Component, Inject } from '@angular/core';
|
||||
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material';
|
||||
|
||||
/**
|
||||
* Unassign role dialog component.
|
||||
*/
|
||||
@Component({
|
||||
selector: 'mifosx-unassign-role-dialog',
|
||||
templateUrl: './unassign-role-dialog.component.html',
|
||||
styleUrls: ['./unassign-role-dialog.component.scss']
|
||||
})
|
||||
export class UnassignRoleDialogComponent {
|
||||
|
||||
/**
|
||||
* @param {MatDialogRef} dialogRef Component reference to dialog.
|
||||
* @param {any} data.
|
||||
*/
|
||||
constructor(public dialogRef: MatDialogRef<UnassignRoleDialogComponent>,
|
||||
@Inject(MAT_DIALOG_DATA) public data: any) { }
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user