vendor validation removed and vendor menu view based on role
This commit is contained in:
parent
32e47445c6
commit
ac989915e2
@ -5,7 +5,7 @@
|
|||||||
margin-top: -5px;
|
margin-top: -5px;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
:host /deep/ {
|
:host {
|
||||||
mat-sidenav {
|
mat-sidenav {
|
||||||
max-width: 400px;
|
max-width: 400px;
|
||||||
max-height: 500px;
|
max-height: 500px;
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
margin-top: -5px;
|
margin-top: -5px;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
:host /deep/ {
|
:host {
|
||||||
// mat-sidenav {
|
// mat-sidenav {
|
||||||
// max-width: 400px;
|
// max-width: 400px;
|
||||||
// max-height: 500px;
|
// max-height: 500px;
|
||||||
|
|||||||
@ -174,7 +174,8 @@
|
|||||||
</mat-option>
|
</mat-option>
|
||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-form-field class="ml-xs mr-xs" *ngIf="regForm.controls['smc_agency_id']">
|
|
||||||
|
<mat-form-field class="ml-xs mr-xs" *ngIf="regForm.controls['smc_agency_id']&& vendor===true ">
|
||||||
<mat-select placeholder="Vendor" formControlName="smc_agency_id">
|
<mat-select placeholder="Vendor" formControlName="smc_agency_id">
|
||||||
<mat-option>
|
<mat-option>
|
||||||
Select
|
Select
|
||||||
|
|||||||
@ -74,6 +74,7 @@ export class RegisterComponent implements OnInit {
|
|||||||
configdata: any;
|
configdata: any;
|
||||||
shortname: any;
|
shortname: any;
|
||||||
vendorlist: any;
|
vendorlist: any;
|
||||||
|
vendor: boolean;
|
||||||
constructor(
|
constructor(
|
||||||
private router: Router, public fb: FormBuilder,public cb: FormBuilder, public AWS: AwsService, private cd: ChangeDetectorRef
|
private router: Router, public fb: FormBuilder,public cb: FormBuilder, public AWS: AwsService, private cd: ChangeDetectorRef
|
||||||
,private elementRef: ElementRef,public users:UserService,notifier:NotifierService,private dialog: MatDialog) {
|
,private elementRef: ElementRef,public users:UserService,notifier:NotifierService,private dialog: MatDialog) {
|
||||||
@ -331,6 +332,13 @@ console.log("cog",userData,this.usersData)
|
|||||||
this.visible = false;
|
this.visible = false;
|
||||||
// alert(this.visible);
|
// alert(this.visible);
|
||||||
}
|
}
|
||||||
|
if(e.role_id=='28' ||e.role_id=='29')
|
||||||
|
{
|
||||||
|
this.vendor=true;
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
this.vendor=false;
|
||||||
|
}
|
||||||
|
|
||||||
// if(e.value){
|
// if(e.value){
|
||||||
|
|
||||||
@ -396,7 +404,7 @@ getBranch(flag?){
|
|||||||
if(this.types[0].entity_type_id == '2' && this.regForm.value.lenVenName.short_name == 'MWISE') {
|
if(this.types[0].entity_type_id == '2' && this.regForm.value.lenVenName.short_name == 'MWISE') {
|
||||||
//this.regForm.addControl('user_config',this.addUserConfigControls())
|
//this.regForm.addControl('user_config',this.addUserConfigControls())
|
||||||
this.regForm.addControl('designation',new FormControl('',Validators.required))
|
this.regForm.addControl('designation',new FormControl('',Validators.required))
|
||||||
this.regForm.addControl('smc_agency_id',new FormControl('',Validators.required))
|
this.regForm.addControl('smc_agency_id',new FormControl(''))
|
||||||
this.getvendor()
|
this.getvendor()
|
||||||
this.users.getEntityPreferences(this.regForm.value.lenVenName.entity_id).subscribe(res=>{
|
this.users.getEntityPreferences(this.regForm.value.lenVenName.entity_id).subscribe(res=>{
|
||||||
if(res['dataStatus']) {
|
if(res['dataStatus']) {
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
@import "../mixins/bi-app/bi-app-ltr";
|
@import "../mixins/bi-app/bi-app-ltr";
|
||||||
@import "../app.variables";
|
@import "../app.variables";
|
||||||
@import "../mixins";
|
@import "../mixins";
|
||||||
:host /deep/ {
|
:host {
|
||||||
[appAccordionToggle] {
|
[appAccordionToggle] {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
@ -86,7 +86,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-dark :host /deep/ {
|
.app-dark :host {
|
||||||
.messages-list {
|
.messages-list {
|
||||||
.mat-list-item {
|
.mat-list-item {
|
||||||
background: mat-color($dark-background, card);
|
background: mat-color($dark-background, card);
|
||||||
@ -95,7 +95,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[dir="rtl"] :host /deep/ {
|
[dir="rtl"] :host {
|
||||||
.messages-nav {
|
.messages-nav {
|
||||||
mat-icon {
|
mat-icon {
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user