service assigned Fix
This commit is contained in:
parent
cc5e7d55bd
commit
bd082f2fde
@ -343,6 +343,8 @@
|
||||
<!-- <mat-error *ngIf="myError('businessselect', 'required')">role is required</mat-error> -->
|
||||
</mat-form-field>
|
||||
</div>
|
||||
<div *ngIf="servicesList_array.length != 0">
|
||||
<ng-scrollbar class="scrollHV">
|
||||
<mat-card class="p-1" *ngFor="let details of servicesList_array;let i = index">
|
||||
<div fxLayout="row" class="flexCard">
|
||||
<div fxFlex.xs="10" fxFlex.sm="10" fxFlex.md="10" fxFlex.lg="10" fxFlex.xl="10">
|
||||
@ -357,9 +359,21 @@
|
||||
<span style="color: green;">Active</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</mat-card>
|
||||
</ng-scrollbar>
|
||||
</div>
|
||||
<div *ngIf="servicesList_array.length == 0">
|
||||
<div fxLayout="row" class="flexCard">
|
||||
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="100" fxFlex.lg="100" fxFlex.xl="100" fxLayoutAlign="center center">
|
||||
<div><img src="assets/images/service.png" width="300" height="300"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div fxLayout="row" class="flexCard">
|
||||
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="100" fxFlex.lg="100" fxFlex.xl="100" fxLayoutAlign="center center">
|
||||
<p class="noAssignedService">No Service Assigned</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</mat-tab>
|
||||
|
||||
<mat-tab>
|
||||
|
||||
@ -408,3 +408,10 @@ margin-bottom: 10rem;
|
||||
display: contents !important;
|
||||
}
|
||||
}
|
||||
|
||||
.noAssignedService{
|
||||
font-size: large;
|
||||
color: #847a7a;
|
||||
margin: 0;
|
||||
text-align: center;
|
||||
}
|
||||
@ -118,6 +118,7 @@ workingDialog(action,obj) {
|
||||
}
|
||||
} );
|
||||
}
|
||||
|
||||
getAssignedList(busId) {
|
||||
this._api.getAssignedDetails(busId).subscribe(res => {
|
||||
console.log(res)
|
||||
@ -142,9 +143,8 @@ workingDialog(action,obj) {
|
||||
});
|
||||
});
|
||||
console.log(this.servicesList_array)
|
||||
|
||||
this.getAssignedList(this.usersList.busId)
|
||||
}
|
||||
this.getAssignedList(this.usersList.busId)
|
||||
});
|
||||
// this.assignService = this.checkedArray
|
||||
}
|
||||
@ -178,22 +178,7 @@ workingDialog(action,obj) {
|
||||
// });
|
||||
}
|
||||
|
||||
workingDialog(action,obj) {
|
||||
obj.action = action;
|
||||
const dialogRef = this.dialog.open(ExtraWorkingHoursComponent, {
|
||||
width: '48%',
|
||||
height: '100%',
|
||||
// maxWidth: '38vw',
|
||||
position: { right: '0' },
|
||||
data:obj
|
||||
});
|
||||
// dialogRef.afterClosed().subscribe(result => {
|
||||
// if(result != undefined){
|
||||
// console.log(result)
|
||||
// this.formAddUpdateAndDelete(result,result.data)
|
||||
// }
|
||||
// });
|
||||
}
|
||||
|
||||
|
||||
asignService(param,index){
|
||||
console.log(param)
|
||||
|
||||
@ -3,8 +3,7 @@
|
||||
<div class="popup-header">
|
||||
<h5>
|
||||
Edit Working Hours
|
||||
<button mat-icon-button type="button" matTooltip="Close" class="button" matTooltipPosition="above" (click)="close()"
|
||||
>
|
||||
<button mat-icon-button type="button" matTooltip="Close" class="button" matTooltipPosition="above" (click)="close()">
|
||||
<mat-icon>close</mat-icon>
|
||||
</button>
|
||||
</h5>
|
||||
@ -14,13 +13,7 @@
|
||||
<div *ngFor="let filter of filtersFormArray.controls; let i = index;">
|
||||
<div [formGroupName]="i" class="container">
|
||||
<div class="dis-flexs">
|
||||
<div class="label-name" formControlName="day">
|
||||
<input id="color-toggle" type="checkbox" *ngIf="i == 0">
|
||||
<span class="labelname checkbox-default-blue checked"
|
||||
[value]="day">
|
||||
<label *ngIf="i == 0">Sunday</label>
|
||||
</span>
|
||||
</div>
|
||||
<mat-checkbox class="example-margin mt-2" formControlName="day" (change)="showOptions($event)">Sunday</mat-checkbox>
|
||||
<mat-form-field appearance="outline">
|
||||
<mat-select
|
||||
placeholder="Select Time"
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { FormArray, FormBuilder, FormGroup } from '@angular/forms';
|
||||
import { MatCheckboxChange } from '@angular/material/checkbox';
|
||||
import { MatDialogRef } from '@angular/material/dialog';
|
||||
|
||||
@Component({
|
||||
@ -301,6 +302,9 @@ getFilterGroupAtIndex(index) {
|
||||
onSubmit() {
|
||||
console.log(this.datainputForm.value);
|
||||
}
|
||||
showOptions(event:any): void {
|
||||
console.log(event.checked);}
|
||||
showOptions(event:MatCheckboxChange): void {
|
||||
console.log(event.checked);
|
||||
// this.form['value'].admin_checked = event.checked
|
||||
// console.log(this.form['value'].admin_checked)
|
||||
}
|
||||
}
|
||||
|
||||
BIN
ng-seed/src/assets/images/service.png
Normal file
BIN
ng-seed/src/assets/images/service.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
Loading…
Reference in New Issue
Block a user