Loading packages/merchant-tablet-ionic/src/@shared/user/mutation/user-mutation.component.html +1 −1 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ (user ? 'Edit customer' : 'CUSTOMERS_VIEW.ADD_CUSTOMER') | translate }} </h4> <button class="close" (click)="cancelModal()"> <button class="close" *ngIf="visible" (click)="cancelModal()"> <i class="fa fa-close"></i> </button> <ion-row class="crete-user"> Loading packages/merchant-tablet-ionic/src/@shared/user/mutation/user-mutation.component.ts +11 −0 Original line number Diff line number Diff line Loading @@ -43,6 +43,12 @@ export class UserMutationComponent { @Output() customerIdEmitter = new EventEmitter<string>(); @Input() visible: boolean = true; @Output() updateVisible = new EventEmitter<boolean>(); mapCoordinatesEmitter = new EventEmitter< google.maps.LatLng | google.maps.LatLngLiteral >(); Loading Loading @@ -79,6 +85,11 @@ export class UserMutationComponent { this.customerIdEmitter.emit(customerId); } changeState(): void { this.visible = false; this.updateVisible.emit(this.visible); } async createCustomer() { let userId: string; let message: string; Loading packages/merchant-tablet-ionic/src/components/order/select-add-customer.component.ts +8 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,8 @@ import { TranslateService } from '@ngx-translate/core'; <div *ngIf="!isSelectedFromExisting"> <user-mutation [visible]="visible" (changeState)="changeState($event)" (customerIdEmitter)="broadcastCustomerId($event)" ></user-mutation> </div> Loading @@ -33,6 +35,8 @@ import { TranslateService } from '@ngx-translate/core'; export class SelectAddCustomerComponent implements OnInit { private ngDestroy$ = new Subject<void>(); visible: boolean; @Input() customerOptionSelected: number; Loading Loading @@ -63,6 +67,10 @@ export class SelectAddCustomerComponent implements OnInit { this.broadcastCustomerId(ev.data.id); } changeState(ev): void { this.visible = ev; } broadcastCustomerId(customerId: string) { this.customerIdEmitter.emit(customerId); } Loading Loading
packages/merchant-tablet-ionic/src/@shared/user/mutation/user-mutation.component.html +1 −1 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ (user ? 'Edit customer' : 'CUSTOMERS_VIEW.ADD_CUSTOMER') | translate }} </h4> <button class="close" (click)="cancelModal()"> <button class="close" *ngIf="visible" (click)="cancelModal()"> <i class="fa fa-close"></i> </button> <ion-row class="crete-user"> Loading
packages/merchant-tablet-ionic/src/@shared/user/mutation/user-mutation.component.ts +11 −0 Original line number Diff line number Diff line Loading @@ -43,6 +43,12 @@ export class UserMutationComponent { @Output() customerIdEmitter = new EventEmitter<string>(); @Input() visible: boolean = true; @Output() updateVisible = new EventEmitter<boolean>(); mapCoordinatesEmitter = new EventEmitter< google.maps.LatLng | google.maps.LatLngLiteral >(); Loading Loading @@ -79,6 +85,11 @@ export class UserMutationComponent { this.customerIdEmitter.emit(customerId); } changeState(): void { this.visible = false; this.updateVisible.emit(this.visible); } async createCustomer() { let userId: string; let message: string; Loading
packages/merchant-tablet-ionic/src/components/order/select-add-customer.component.ts +8 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,8 @@ import { TranslateService } from '@ngx-translate/core'; <div *ngIf="!isSelectedFromExisting"> <user-mutation [visible]="visible" (changeState)="changeState($event)" (customerIdEmitter)="broadcastCustomerId($event)" ></user-mutation> </div> Loading @@ -33,6 +35,8 @@ import { TranslateService } from '@ngx-translate/core'; export class SelectAddCustomerComponent implements OnInit { private ngDestroy$ = new Subject<void>(); visible: boolean; @Input() customerOptionSelected: number; Loading Loading @@ -63,6 +67,10 @@ export class SelectAddCustomerComponent implements OnInit { this.broadcastCustomerId(ev.data.id); } changeState(ev): void { this.visible = ev; } broadcastCustomerId(customerId: string) { this.customerIdEmitter.emit(customerId); } Loading