Fairoj : minor issues and copyright year text changes

This commit is contained in:
venbatechnologies@gmail.com 2020-10-22 19:07:32 +05:30
parent 0dc557c1aa
commit 9e881880c8
7 changed files with 18 additions and 9 deletions

View File

@ -1,4 +1,5 @@
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
import { LoaderService } from 'app/shared/loaderService/loader.service';
import { Ng2ImgMaxService } from 'ng2-img-max'; import { Ng2ImgMaxService } from 'ng2-img-max';
@Component({ @Component({
@ -10,7 +11,7 @@ export class CaptureBtnComponent implements OnInit {
@Input() addMoreBtn; @Input() addMoreBtn;
@Output() imageDataEmitter = new EventEmitter @Output() imageDataEmitter = new EventEmitter
constructor(private ng2ImgMax:Ng2ImgMaxService) { } constructor(private ng2ImgMax:Ng2ImgMaxService,private loaderService:LoaderService) { }
ngOnInit(): void { ngOnInit(): void {
console.log(this.addMoreBtn) console.log(this.addMoreBtn)
@ -18,15 +19,19 @@ export class CaptureBtnComponent implements OnInit {
capturedImage(event){ capturedImage(event){
console.log(event); console.log(event);
let imageData= event.target.files[0] let imageData= event.target.files[0]
this.loaderService.showMatSpinnerDialog();
if(imageData) {
this.ng2ImgMax.resizeImage(imageData, 450, 650).subscribe( this.ng2ImgMax.resizeImage(imageData, 450, 650).subscribe(
result => { result => {
this.loaderService.closeMatSpinnerDialog();
this.imageDataEmitter.emit(result) this.imageDataEmitter.emit(result)
}, },
error => { error => {
console.log('😢 Oh no!', error); console.log('😢 Oh no!', error);
this.loaderService.closeMatSpinnerDialog();
} }
); );
}
} }
capture(event){ capture(event){
event.preventDefault(); event.preventDefault();

View File

@ -12,12 +12,13 @@
// } // }
::ng-deep .mat-dialog-container{ ::ng-deep{ .no-padding > .mat-dialog-container{
@media (max-width: 768px) { @media (max-width: 768px) {
padding: 0px !important; padding: 0px !important;
will-change: transform, opacity; will-change: transform, opacity;
} }
} }
}
.mat-button, .mat-raised-button{ .mat-button, .mat-raised-button{
background-color: #e24533; background-color: #e24533;
color: white; color: white;

View File

@ -618,7 +618,7 @@ fill="clear">
</ion-button> </ion-button>
<mat-label *ngIf="getDocsSightedGroup['value'].other_doc_pic == ''" style="font-size: 11px">Capture the <mat-label *ngIf="getDocsSightedGroup['value'].other_doc_pic == ''" style="font-size: 11px">Capture the
Image </mat-label> --> Image </mat-label> -->
<mat-error align="end" style="font-size:12px" *ngIf="getDocsSightedGroup.controls['other_doc_pic'].errors?.required || getEmployer_details.controls['other_doc_pic'].touched">Required</mat-error> <mat-error align="end" style="font-size:12px" *ngIf="getDocsSightedGroup.controls['other_doc_pic'].errors?.required || getDocsSightedGroup.controls['other_doc_pic'].touched">Required</mat-error>
</div> </div>
</div> </div>

View File

@ -52,10 +52,11 @@
// margin-top: 16px; // margin-top: 16px;
width: 100%; width: 100%;
} }
::ng-deep .mat-dialog-container{ ::ng-deep{ .no-padding > .mat-dialog-container{
@media (max-width: 768px) { @media (max-width: 768px) {
padding: 0px !important; padding: 0px !important;
} }
}
} }
.whole_form { .whole_form {

View File

@ -1,9 +1,9 @@
.mat-list-item-content,.mat-list-base{ .mat-list-item-content,.mat-list-base{
padding:0px !important; padding:0px !important;
} }
::ng-deep .mat-dialog-container{ ::ng-deep{ .no-padding > .mat-dialog-container{
@media (max-width: 768px) { @media (max-width: 768px) {
padding: 0px !important; padding: 0px !important;
// will-change: transform, opacity;
} }
}
} }

View File

@ -326,7 +326,8 @@ export class ViewPdComponent implements OnInit, OnDestroy {
pdData.pd_id = childData.assigned_pd; pdData.pd_id = childData.assigned_pd;
const dialogSchedule = this.dialog.open(SchedulePdComponent, { const dialogSchedule = this.dialog.open(SchedulePdComponent, {
data: pdData, data: pdData,
disableClose: true disableClose: true,
panelClass:'no-padding'
}); });
dialogSchedule.afterClosed() dialogSchedule.afterClosed()
.subscribe(dataresult => { .subscribe(dataresult => {
@ -432,6 +433,7 @@ export class ViewPdComponent implements OnInit, OnDestroy {
width: '100%', width: '100%',
disableClose: false, disableClose: false,
closeOnNavigation:true, closeOnNavigation:true,
panelClass:'no-padding'
}); });
dialogRef.afterClosed() dialogRef.afterClosed()
.subscribe(dataresult => { .subscribe(dataresult => {

View File

@ -42,7 +42,7 @@
<footer class="page-footer"> <footer class="page-footer">
<!-- © Copyright --> <!-- © Copyright -->
<div class="footer-copyright text-center">&#169; 2018 <div class="footer-copyright text-center">&#169; 2020
<a href="http://www.sineedge.com" target="_blank"> SineEdge Consulting Pvt Ltd. </a> All rights are reserved <a href="http://www.sineedge.com" target="_blank"> SineEdge Consulting Pvt Ltd. </a> All rights are reserved
</div> </div>
<!-- © Copyright --> <!-- © Copyright -->