slot issue fixed
This commit is contained in:
parent
87ea4a06be
commit
ff88d7de84
@ -687,14 +687,27 @@
|
|||||||
<mat-error *ngIf="myErrorBusiness('currency', 'required')">currency is required</mat-error>
|
<mat-error *ngIf="myErrorBusiness('currency', 'required')">currency is required</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
<div fxLayout="row wrap">
|
|
||||||
|
<div class="form-group label-container">
|
||||||
|
|
||||||
|
<div fxFlex.xs="70" fxFlex.sm="70" fxFlex.md="70" fxFlex.lg="70" fxFlex.xl="70">
|
||||||
|
<label >Business Logo</label><br />
|
||||||
|
<img *ngIf="imageViewStatus != true" class="image mb-2" [src]="image_view(BusinessDetailsdata.logo)" height="150" width="150"/>
|
||||||
|
<img *ngIf="imageViewStatus == true" class="image mb-2" [src]="url" height="150" width="150"><br/>
|
||||||
|
<input *ngIf="isEditableBusiness == true" type='file' accept="image/*" data-max-size="2048" style="width: 50%;" (change)="onSelectFile($event)" formControlName="logo"><br>
|
||||||
|
<span *ngIf="imageViewStatus != true && isEditableBusiness == true" class="imgSizeValidation">Upload Below 2MB <br> Supported File (jpg,jpeg and png)</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- <div fxLayout="row wrap">
|
||||||
|
<mat-label>Business Logo</mat-label>
|
||||||
<div fxFlex.xs="70" fxFlex.sm="70" fxFlex.md="70" fxFlex.lg="70" fxFlex.xl="70">
|
<div fxFlex.xs="70" fxFlex.sm="70" fxFlex.md="70" fxFlex.lg="70" fxFlex.xl="70">
|
||||||
|
|
||||||
<img *ngIf="imageViewStatus != true" class="image mb-2" [src]="image_view(BusinessDetailsdata.logo)" height="150" width="150"/>
|
<img *ngIf="imageViewStatus != true" class="image mb-2" [src]="image_view(BusinessDetailsdata.logo)" height="150" width="150"/>
|
||||||
<img *ngIf="imageViewStatus == true" class="image mb-2" [src]="url" height="150" width="150"><br/>
|
<img *ngIf="imageViewStatus == true" class="image mb-2" [src]="url" height="150" width="150"><br/>
|
||||||
<input *ngIf="isEditableBusiness == true" type='file' accept="image/*" data-max-size="2048" style="width: 50%;" (change)="onSelectFile($event)" formControlName="logo"><br>
|
<input *ngIf="isEditableBusiness == true" type='file' accept="image/*" data-max-size="2048" style="width: 50%;" (change)="onSelectFile($event)" formControlName="logo"><br>
|
||||||
<span *ngIf="imageViewStatus != true && isEditableBusiness == true" class="imgSizeValidation">Upload Below 2MB <br> Supported File (jpg,jpeg and png)</span>
|
<span *ngIf="imageViewStatus != true && isEditableBusiness == true" class="imgSizeValidation">Upload Below 2MB <br> Supported File (jpg,jpeg and png)</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div> -->
|
||||||
|
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
|
|||||||
@ -115,7 +115,7 @@ export class CustomerInfoComponent implements OnInit {
|
|||||||
order_id: generateRandomString(),
|
order_id: generateRandomString(),
|
||||||
description: 'testing',
|
description: 'testing',
|
||||||
mode: 'TEST',
|
mode: 'TEST',
|
||||||
return_url: 'http://localhost:8080/api/paymentResponse',
|
return_url: this.apiUrl+'paymentResponse',
|
||||||
currency: 'INR',
|
currency: 'INR',
|
||||||
country: 'IND',
|
country: 'IND',
|
||||||
udf1: ''+busId+'',
|
udf1: ''+busId+'',
|
||||||
|
|||||||
@ -276,8 +276,8 @@ if(this.getHours.length != 0){
|
|||||||
const filteredTimes = this.slots.filter(time => new Date(time) >= firstSlt && new Date(time) <= lastSlt);
|
const filteredTimes = this.slots.filter(time => new Date(time) >= firstSlt && new Date(time) <= lastSlt);
|
||||||
|
|
||||||
console.log(resultArray,filteredTimes);
|
console.log(resultArray,filteredTimes);
|
||||||
let result = filteredTimes.pop();
|
// let result = filteredTimes.pop();
|
||||||
console.log(result);
|
//console.log(result);
|
||||||
this.slots.forEach(element => {
|
this.slots.forEach(element => {
|
||||||
if(element <date2){
|
if(element <date2){
|
||||||
console.log(element);
|
console.log(element);
|
||||||
|
|||||||
@ -8,7 +8,7 @@ export const environment = {
|
|||||||
environmentName: 'Testing Environment',//Localhost Environment.
|
environmentName: 'Testing Environment',//Localhost Environment.
|
||||||
// apiEndpoint:'http://venbainfotech.com:5000/api/',
|
// apiEndpoint:'http://venbainfotech.com:5000/api/',
|
||||||
apiEndpoint:'http://192.168.1.23:8080/api/',
|
apiEndpoint:'http://192.168.1.23:8080/api/',
|
||||||
// apiEndpoint:'https://api.venbait.in/api/',
|
// apiEndpoint:'https://api.venbait.in/api/',
|
||||||
|
|
||||||
//EndUser URL
|
//EndUser URL
|
||||||
endUserUrl: window.location.origin+'/#/customer/',
|
endUserUrl: window.location.origin+'/#/customer/',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user