Skip to content
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

Closed
wants to merge 4 commits into from
Closed

Bugfix/#5533-added-services #2281

wants to merge 4 commits into from

Conversation

KKatiaa
Copy link
Contributor

@KKatiaa KKatiaa commented Mar 28, 2023

#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

@@ -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';
Copy link
Contributor

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 {
Copy link
Contributor

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?

@KKatiaa KKatiaa self-assigned this Mar 28, 2023
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@@ -128,6 +128,10 @@ export class UbsAdminTariffsAddServicePopUpComponent implements OnInit, OnDestro
this.loadingAnim = false;
}

getControl(control: string) {
return this.addServiceForm.get(control);
Copy link
Contributor

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 }}
Copy link
Contributor

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

@KKatiaa KKatiaa closed this Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants