feat: groups add and unassign role (#1027)

Fixes #1026
This commit is contained in:
Karan Takalkar
2020-07-08 14:19:51 +05:30
committed by GitHub
parent 5e9e71f66f
commit 356cda70b8
14 changed files with 454 additions and 140 deletions
@@ -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>
@@ -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();
});
});
@@ -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) { }
}