css issues fixes : ps
This commit is contained in:
parent
3f1ec4ab43
commit
938aec7a63
@ -9,8 +9,12 @@ export class RoleMenuItemsPipe implements PipeTransform {
|
|||||||
// this is for horizontal menu filter
|
// this is for horizontal menu filter
|
||||||
if(type=="1"){
|
if(type=="1"){
|
||||||
switch(localStorage.getItem('user_role')){
|
switch(localStorage.getItem('user_role')){
|
||||||
case '4': case '5': return value.filter(val=>val.state!="setting" && val.state!="quality_check_discussion" && val.state!="reports");
|
case '1': return value.filter(val=>val.state!="setting" && val.state!="quality_check_discussion");
|
||||||
case '6': case '7': return value.filter(val=>val.state!="setting" && val.state!="personal_discussion" && val.state!="reports");
|
case '2': return value.filter(val=>val.state!="setting" && val.state!="quality_check_discussion");
|
||||||
|
case '4': return value.filter(val=>val.state!="setting" && val.state!="quality_check_discussion" && val.state!="reports");
|
||||||
|
case '5': return value.filter(val=>val.state!="setting" && val.state!="quality_check_discussion" && val.state!="reports");
|
||||||
|
case '6': return value.filter(val=>val.state!="setting" && val.state!="personal_discussion" && val.state!="reports");
|
||||||
|
case '7': return value.filter(val=>val.state!="setting" && val.state!="personal_discussion" && val.state!="reports");
|
||||||
case '10': return value;
|
case '10': return value;
|
||||||
default: return value.filter(val=>val.state!="setting" && val.state!="quality_check_discussion");
|
default: return value.filter(val=>val.state!="setting" && val.state!="quality_check_discussion");
|
||||||
}
|
}
|
||||||
@ -18,8 +22,12 @@ export class RoleMenuItemsPipe implements PipeTransform {
|
|||||||
// this is for vertical menu filter
|
// this is for vertical menu filter
|
||||||
else if(type=="2"){
|
else if(type=="2"){
|
||||||
switch(localStorage.getItem('user_role')){
|
switch(localStorage.getItem('user_role')){
|
||||||
case '4': case '5': return value.filter(val=>val.state!="setting" && val.state!="quality_check_discussion" && val.state!="reports");
|
case '1': return value.filter(val=>val.state!="setting" && val.state!="quality_check_discussion");
|
||||||
case '6': case '7': return value.filter(val=>val.state!="setting" && val.state!="personal_discussion" && val.state!="reports");
|
case '2': return value.filter(val=>val.state!="setting" && val.state!="quality_check_discussion");
|
||||||
|
case '4': return value.filter(val=>val.state!="setting" && val.state!="quality_check_discussion" && val.state!="reports");
|
||||||
|
case '5': return value.filter(val=>val.state!="setting" && val.state!="quality_check_discussion" && val.state!="reports");
|
||||||
|
case '6': return value.filter(val=>val.state!="setting" && val.state!="personal_discussion" && val.state!="reports");
|
||||||
|
case '7': return value.filter(val=>val.state!="setting" && val.state!="personal_discussion" && val.state!="reports");
|
||||||
case '10': return value;
|
case '10': return value;
|
||||||
default: return value.filter(val=>val.state!="setting" && val.state!="quality_check_discussion");
|
default: return value.filter(val=>val.state!="setting" && val.state!="quality_check_discussion");
|
||||||
}
|
}
|
||||||
|
|||||||
@ -38,7 +38,7 @@ export class ListPdComponent implements OnInit, OnDestroy {
|
|||||||
|
|
||||||
// roles checks for enables events
|
// roles checks for enables events
|
||||||
roleAccessDetails:any
|
roleAccessDetails:any
|
||||||
public userRoleID = localStorage.getItem('user_role') ;
|
public userRoleID = +localStorage.getItem('user_role') ;
|
||||||
constructor( notifier: NotifierService, private route: ActivatedRoute,
|
constructor( notifier: NotifierService, private route: ActivatedRoute,
|
||||||
private router: Router, private _pd: PdTrigerService) {
|
private router: Router, private _pd: PdTrigerService) {
|
||||||
this.notifier = notifier;
|
this.notifier = notifier;
|
||||||
|
|||||||
@ -868,7 +868,7 @@
|
|||||||
[formGroupName]="s">
|
[formGroupName]="s">
|
||||||
|
|
||||||
<mat-form-field style="width:34%;">
|
<mat-form-field style="width:34%;">
|
||||||
<mat-select placeholder="state_name" formControlName="state_name"
|
<mat-select placeholder="State" formControlName="state_name"
|
||||||
required>
|
required>
|
||||||
<mat-option *ngFor="let SL of stateList" [value]="SL.state_id">
|
<mat-option *ngFor="let SL of stateList" [value]="SL.state_id">
|
||||||
{{SL.state_name}}
|
{{SL.state_name}}
|
||||||
|
|||||||
@ -13,9 +13,7 @@
|
|||||||
.metaDataStyle{
|
.metaDataStyle{
|
||||||
height:89px !important;
|
height:89px !important;
|
||||||
}
|
}
|
||||||
// .mat-list .mat-list-item{
|
|
||||||
// height: 0px !important;
|
|
||||||
// }
|
|
||||||
// .headerdesign{
|
// .headerdesign{
|
||||||
// border-radius: 5px !important;
|
// border-radius: 5px !important;
|
||||||
// // border-bottom-left-radius: 5px !important;
|
// // border-bottom-left-radius: 5px !important;
|
||||||
@ -23,10 +21,6 @@
|
|||||||
// box-shadow: 0 5px 11px 0 rgba(0,0,0,.18), 0 4px 15px 0 rgba(0,0,0,.15) !important;
|
// box-shadow: 0 5px 11px 0 rgba(0,0,0,.18), 0 4px 15px 0 rgba(0,0,0,.15) !important;
|
||||||
// }
|
// }
|
||||||
|
|
||||||
.mat-list .mat-list-item{
|
|
||||||
height: 0px !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
:host {
|
:host {
|
||||||
margin-left: -5px;
|
margin-left: -5px;
|
||||||
margin-right: -5px;
|
margin-right: -5px;
|
||||||
|
|||||||
@ -28,7 +28,7 @@ import Swal from 'sweetalert2';
|
|||||||
export class ViewPdComponent implements OnInit, OnDestroy {
|
export class ViewPdComponent implements OnInit, OnDestroy {
|
||||||
pipe = new DatePipe('en-US');
|
pipe = new DatePipe('en-US');
|
||||||
private notifier: NotifierService;
|
private notifier: NotifierService;
|
||||||
public userRoleID = localStorage.getItem('user_role');
|
public userRoleID = +localStorage.getItem('user_role');
|
||||||
errorMessage: any;
|
errorMessage: any;
|
||||||
pdMasterData: any = [];
|
pdMasterData: any = [];
|
||||||
pdAddressesData: any = [];
|
pdAddressesData: any = [];
|
||||||
|
|||||||
@ -108,7 +108,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div fxLayout="row wrap">
|
<div fxLayout="row wrap">
|
||||||
<div fxFlex="50" *ngFor="let addresses of master.addresses;">
|
<div fxFlex="50" *ngFor="let addresses of master.addresses;">
|
||||||
<mat-card style="box-shadow: 0 5px 11px 0 rgba(0,0,0,.18), 0 4px 15px 0 rgba(0,0,0,.15) !important;border-radius: 5px !important;border-bottom:1px solid #e00201 !important;" *ngIf="addresses.pincode">
|
<mat-card style="box-shadow: 0 5px 11px 0 rgba(219, 204, 204, 0.18), 0 4px 15px 0 rgba(0,0,0,.15) !important;border-radius: 5px !important;border-bottom:1px solid #e00201 !important;" *ngIf="addresses.pincode">
|
||||||
<mat-card-title class="headerdesign" style="margin:0px !important;padding: 0px !important;height: 95px !important;">
|
<mat-card-title class="headerdesign" style="margin:0px !important;padding: 0px !important;height: 95px !important;">
|
||||||
<!-- this is for set primary address of the PD actions-->
|
<!-- this is for set primary address of the PD actions-->
|
||||||
<div [ngSwitch]="addresses.is_primary" style="padding:10px !important;">
|
<div [ngSwitch]="addresses.is_primary" style="padding:10px !important;">
|
||||||
|
|||||||
@ -37,7 +37,7 @@ export class QcViewComponent implements OnInit, OnDestroy {
|
|||||||
currentPDStatus:string;
|
currentPDStatus:string;
|
||||||
pdAdditionalReqData: any=[];
|
pdAdditionalReqData: any=[];
|
||||||
enableStartPD: boolean;
|
enableStartPD: boolean;
|
||||||
public userRoleID = localStorage.getItem('user_role');
|
public userRoleID = +localStorage.getItem('user_role');
|
||||||
// create values for status check
|
// create values for status check
|
||||||
pdStatusCheck :any={
|
pdStatusCheck :any={
|
||||||
"DRAFT" :'DRAFT',
|
"DRAFT" :'DRAFT',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user