-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bugfix/#5533-added-services #2281
Conversation
@@ -10,6 +10,7 @@ import { Order } from '../models/ubs.model'; | |||
import { UBSOrderFormService } from './ubs-order-form.service'; | |||
import { OrderClientDto } from 'src/app/ubs/ubs-user/ubs-user-orders-list/models/OrderClientDto'; | |||
import { ResponceOrderFondyModel } from '../../ubs-user/ubs-user-orders-list/models/ResponceOrderFondyModel'; | |||
import { serializeNodes } from '@angular/compiler/src/i18n/digest'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where do we use this import?
@@ -157,4 +158,12 @@ export class OrderService { | |||
saveOrderData(): void { | |||
this.localStorageService.setOrderWithoutPayment(true); | |||
} | |||
|
|||
saveServiceName(serviceName: string): void { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where do we use these functions and is there any reason to redeclare them?
Kudos, SonarCloud Quality Gate passed! |
@@ -128,6 +128,10 @@ export class UbsAdminTariffsAddServicePopUpComponent implements OnInit, OnDestro | |||
this.loadingAnim = false; | |||
} | |||
|
|||
getControl(control: string) { | |||
return this.addServiceForm.get(control); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add type of function return :AbstractControl
> | ||
</textarea> | ||
<div class="validation" *ngIf="getControl('description').invalid && getControl('description').touched"> | ||
{{ 'ubs-tariffs-add-service.error_service_field_message' | translate }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use app-ubs-input-error for ubs error messages
For example we use it in UBSAddAddressPopUpComponent
#5533 Change request to US #4427, #4428 "Add a service "Сервіс" to the pricing card", "Edit a service "Сервіс" in the pricing card"
ita-social-projects/GreenCity#5533