Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ <h4 class="pull-left">Create Call Disposition Type/Sub Type</h4>
<div class="table-responsive">
<table
mat-table
matSort
[dataSource]="filtereddata"
class="table table-striped table-hover"
>
Expand Down Expand Up @@ -361,6 +362,7 @@ <h4 class="pull-left">Create Call Disposition Type/Sub Type</h4>
<div class="table-responsive">
<table
mat-table
matSort
[dataSource]="temporarySubtypeArray"
class="table table-striped table-hover"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ <h4 class="pull-left">Category and Sub Category Master</h4>
<table
*ngIf="showCategoryTable"
mat-table
matSort
[dataSource]="filtereddata"
class="table table-striped table-hover"
>
Expand Down Expand Up @@ -216,6 +217,7 @@ <h4 class="pull-left">Category and Sub Category Master</h4>
<table
*ngIf="!showCategoryTable"
mat-table
matSort
[dataSource]="filteredsubCat"
class="table table-striped table-hover"
>
Expand Down Expand Up @@ -562,6 +564,7 @@ <h4 class="pull-left">Create Category and Sub Category</h4>
<div class="table-responsive">
<table
mat-table
matSort
[dataSource]="this.serviceList"
class="table table-striped table-hover"
>
Expand Down Expand Up @@ -621,6 +624,7 @@ <h4 class="pull-left">Create Category and Sub Category</h4>
<div class="table-responsive">
<table
mat-table
matSort
[dataSource]="this.serviceSubCatList"
class="table table-striped table-hover"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ <h4 class="pull-left">Edit Device ID</h4>
<div class="table-responsive">
<table
mat-table
matSort
[dataSource]="filteredsearchResultArray"
class="table table-striped table-hover"
>
Expand Down Expand Up @@ -226,6 +227,7 @@ <h4 class="pull-left">Edit Device ID</h4>
<div class="table-responsive" *ngIf="bufferArray.data.length > 0">
<table
mat-table
matSort
[dataSource]="bufferArray"
class="table table-striped table-hover"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ <h4 class="pull-left">Drug Group Master</h4>
<div class="table-responsive">
<table
mat-table
matSort
class="table table-striped table-hover"
[dataSource]="filteredavailableDrugGroups"
>
Expand Down Expand Up @@ -215,6 +216,7 @@ <h4 *ngIf="editable">Edit Drug Group</h4>
<div class="table-responsive">
<table
mat-table
matSort
[dataSource]="drugGroupList"
class="table table-striped table-hover"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ <h4 class="pull-left">Drug Master</h4>
<div class="table-responsive">
<table
mat-table
matSort
class="table table-striped table-hover"
[dataSource]="fileteredavailableDrugs"
>
Expand Down Expand Up @@ -230,6 +231,7 @@ <h4 *ngIf="editable">Edit Drug</h4>
<div class="table-responsive">
<table
mat-table
matSort
[dataSource]="drugList"
class="table table-striped table-hover"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ <h4 *ngIf="!editable && !showMappings">Drug Group-Drug Mapping</h4>
<div class="table-responsive">
<table
mat-table
matSort
class="table table-striped table-hover"
[dataSource]="filteredavailableDrugMappings"
>
Expand Down Expand Up @@ -232,6 +233,7 @@ <h4 *ngIf="!editable && !showMappings">Drug Group-Drug Mapping</h4>
<div class="table-responsive">
<table
mat-table
matSort
[dataSource]="drugMapping"
class="table table-striped table-hover"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ <h4>Drug Strength Master</h4>
<div class="table-responsive">
<table
mat-table
matSort
class="table table-striped table-hover"
[dataSource]="filteredDrugStrength"
>
Expand Down Expand Up @@ -214,6 +215,7 @@ <h4 *ngIf="editMode && !tableMode">Edit Drug Strength</h4>
<div class="table-responsive">
<table
mat-table
matSort
[dataSource]="drugStrengthList"
class="table table-striped table-hover"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ <h4 class="m-b-30">Feedback/Complaint Nature Master</h4>
<div class="table-responsive">
<table
mat-table
matSort
[dataSource]="this.filterednatureTypes"
class="table table-striped table-hover"
>
Expand Down Expand Up @@ -314,6 +315,7 @@ <h4 class="width100">Add Feedback/Complaint Nature</h4>
<div class="table-responsive">
<table
mat-table
matSort
[dataSource]="this.objs"
class="table table-striped table-hover"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ <h4 class="pull-left">Feedback/Complaint Type Master</h4>
<div class="table-responsive">
<table
mat-table
matSort
[dataSource]="filteredfeedbackTypes"
class="table table-striped table-hover"
>
Expand Down Expand Up @@ -298,6 +299,7 @@ <h4 class="width100">Add Feedback/Complaint Type</h4>
<div class="table-responsive">
<table
mat-table
matSort
[dataSource]="objs"
class="table table-striped table-hover"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ <h4 class="pull-left">Edit Test</h4>
<div class="table-responsive">
<table
mat-table
matSort
[dataSource]="filteredFetosenseTests"
class="table table-striped table-hover"
>
Expand Down Expand Up @@ -249,6 +250,7 @@ <h4 class="pull-left">Edit Test</h4>
<div class="table-responsive">
<table
mat-table
matSort
[dataSource]="addedFetosenseTests"
class="table table-striped table-hover"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ <h4 class="pull-left">Create Institution</h4>
<div class="table-responsive">
<table
mat-table
matSort
[dataSource]="filteredsearchResultArray"
class="table table-striped table-hover"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ <h4 class="pull-left">Create Institute Type</h4>
<div class="table-responsive">
<table
mat-table
matSort
[dataSource]="this.filteredsearchResultArray"
class="table table-striped table-hover"
>
Expand Down Expand Up @@ -225,6 +226,7 @@ <h4 class="pull-left">Create Institute Type</h4>
<div class="table-responsive" *ngIf="bufferArray.data.length > 0">
<table
mat-table
matSort
[dataSource]="this.bufferArray.data"
class="table table-striped table-hover"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ <h4>
<div class="table-responsive">
<table
mat-table
matSort
class="table table-striped table-hover"
[dataSource]="filteredLanguageMappedList"
>
Expand Down Expand Up @@ -310,6 +311,7 @@ <h4 *ngIf="editMode">
<div class="table-responsive">
<table
mat-table
matSort
[dataSource]="bufferArray"
class="table table-striped table-hover"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ <h4 *ngIf="editable && !showListOfCategorymapping">
<div class="table-responsive">
<table
mat-table
matSort
[dataSource]="filteredMappings"
class="table table-striped table-hover"
>
Expand Down Expand Up @@ -238,6 +239,7 @@ <h4 *ngIf="editable && !showListOfCategorymapping">
<div class="table-responsive">
<table
mat-table
matSort
[dataSource]="complaintCategoryMappingList"
class="table table-striped table-hover"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ <h4 *ngIf="editable && !showListOfMapping">
<div class="table-responsive">
<table
mat-table
matSort
class="table table-striped table-hover"
[dataSource]="filteredMappedParkingPlaceDistricts"
>
Expand Down Expand Up @@ -299,6 +300,7 @@ <h4 *ngIf="editable && !showListOfMapping">
<div class="table-responsive">
<table
mat-table
matSort
[dataSource]="mappingList"
class="table table-striped table-hover"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ <h4 class="pull-left">Edit Role</h4>
<div class="table-responsive">
<table
mat-table
matSort
[dataSource]="dataSource"
class="table table-striped table-hover"
>
Expand Down Expand Up @@ -317,6 +318,7 @@ <h4 class="pull-left">Edit Role</h4>
<div class="table-responsive">
<table
mat-table
matSort
[dataSource]="addRole"
class="table table-striped table-hover"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,15 @@ export class RoleMasterComponent implements OnInit, AfterViewInit {
this.dataSource.sort = this.sort;
}

private setDataSourceAttributes() {
if (this.paginatorFirst) {
this.dataSource.paginator = this.paginatorFirst;
}
if (this.sort) {
this.dataSource.sort = this.sort;
}
}

getServiceLines() {
this.ProviderAdminRoleService.getServiceLinesNew(this.userID).subscribe(
(response: any) => {
Expand Down Expand Up @@ -172,8 +181,7 @@ export class RoleMasterComponent implements OnInit, AfterViewInit {
this.states = response.data;
this.searchresultarray = [];
this.dataSource.data = [];
this.dataSource.paginator = this.paginatorFirst;
this.dataSource.sort = this.sort;
this.setDataSourceAttributes();

if (value.isNational) {
this.nationalFlag = value.isNational;
Expand Down Expand Up @@ -207,8 +215,7 @@ export class RoleMasterComponent implements OnInit, AfterViewInit {
this.dataSource.data.forEach((item: any, index: number) => {
item.sno = index + 1;
});
this.dataSource.paginator = this.paginatorFirst;
this.dataSource.sort = this.sort;
this.setDataSourceAttributes();
if (this.service.serviceID !== 7) {
for (let i = 0; i < this.searchresultarray.length; i++) {
this.filterScreens.push(this.searchresultarray[i].screenName);
Expand Down Expand Up @@ -638,10 +645,9 @@ export class RoleMasterComponent implements OnInit, AfterViewInit {
this.services = [];
this.searchresultarray = [];
this.dataSource.data = [];
this.dataSource.paginator = this.paginatorFirst;
this.dataSource.sort = this.sort;
this.filterScreens = [];
this.showAddButtonFlag = false;
this.setDataSourceAttributes()
}

// UPDATE MORE FEATURES TO ROLE
Expand Down Expand Up @@ -697,12 +703,10 @@ export class RoleMasterComponent implements OnInit, AfterViewInit {
filterComponentList(searchTerm?: string) {
if (!searchTerm) {
this.dataSource.data = this.searchresultarray;
this.dataSource.paginator = this.paginatorFirst;
this.dataSource.sort = this.sort;
this.setDataSourceAttributes();
} else {
this.dataSource.data = [];
this.dataSource.paginator = this.paginatorFirst;
this.dataSource.sort = this.sort;
this.setDataSourceAttributes();
this.searchresultarray.forEach((item: any) => {
for (const key in item) {
if (key === 'roleName' || key === 'screenName') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ <h4 *ngIf="!firstPage" class="pull-left">Add Severity Type</h4>
<div class="table-responsive">
<table
mat-table
matSort
[dataSource]="filtereddata"
class="table table-striped table-hover"
>
Expand Down Expand Up @@ -224,6 +225,7 @@ <h4 *ngIf="!firstPage" class="pull-left">Add Severity Type</h4>
<div class="table-responsive">
<table
mat-table
matSort
[dataSource]="severityArray"
class="table table-striped table-hover"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ <h4 *ngIf="creationMode && !tableMode">Create Mapping</h4>
<div class="table-responsive">
<table
mat-table
matSort
[dataSource]="filteredspecializationList"
class="table table-striped table-hover"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ <h4>Van Master</h4>
<div class="table-responsive">
<table
mat-table
matSort
class="table table-striped table-hover"
[dataSource]="filteredavailableVans"
>
Expand Down Expand Up @@ -446,6 +447,7 @@ <h4 *ngIf="editable">Edit Van Details</h4>
<div *ngIf="vanList.data.length > 0" class="m-t-10 table-responsive">
<table
mat-table
matSort
[dataSource]="vanList"
class="table table-striped table-hover"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ <h4 *ngIf="editable && !showListOfZonemapping">
<div class="table-responsive">
<table
mat-table
matSort
class="table table-striped table-hover"
[dataSource]="filteredavailableZoneDistrictMappings"
>
Expand Down Expand Up @@ -266,6 +267,7 @@ <h4 *ngIf="editable && !showListOfZonemapping">
<div class="table-responsive">
<table
mat-table
matSort
[dataSource]="zoneDistrictMappingList"
class="table table-striped table-hover"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ <h4 *ngIf="editable && !showListOfZones">Edit Zone</h4>
<div class="table-responsive">
<table
mat-table
matSort
class="table table-striped table-hover"
[dataSource]="filteredavailableZones"
>
Expand Down Expand Up @@ -260,6 +261,7 @@ <h4 *ngIf="editable && !showListOfZones">Edit Zone</h4>
<div class="table-responsive">
<table
mat-table
matSort
[dataSource]="zoneList"
class="table table-striped table-hover"
>
Expand Down
Loading