Skip to content

Commit d3c5524

Browse files
fixing website url issue
1 parent bb3ac30 commit d3c5524

File tree

5 files changed

+18
-6
lines changed

5 files changed

+18
-6
lines changed

project/ws/app/src/lib/routes/home/routes/marketplace-provider/components/configure-marketplace-providers/configure-marketplace-providers.component.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@
3737
<div class="flex flex-col w-full gap-10">
3838
<div class="flex flex-col gap-4">
3939
<span class="instruction-text mb-2">Open & follow these instruction</span>
40-
<span class="instruction-text">1.Please ensure the Certificate file is named correctly.</span>
40+
<ng-container *ngFor="let instruction of instructionsList; let i = index">
41+
<span class="instruction-text">{{i+1}}.{{instruction}} </span>
42+
</ng-container>
4143
</div>
4244
<ws-app-transformations [providerDetails]="providerDetails"
4345
[transformationType]="'certificateTemplateUrl'" (loadProviderDetails)="getProviderDetails(true)"

project/ws/app/src/lib/routes/home/routes/marketplace-provider/components/configure-marketplace-providers/configure-marketplace-providers.component.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ export class ConfigureMarketplaceProvidersComponent implements OnInit {
3232
helpVideoLink: `/assets/public/content/guide-videos/CIOS_Updated_demo.mp4`,
3333
}
3434

35+
instructionsList = [
36+
'Please ensure the Certificate file is named correctly'
37+
]
38+
3539
constructor(
3640
private activateRoute: ActivatedRoute,
3741
private snackBar: MatSnackBar,
@@ -49,6 +53,10 @@ export class ConfigureMarketplaceProvidersComponent implements OnInit {
4953
this.disableCourseCatalog = false
5054
this.providerDetails = data.providerDetails.data.result
5155
}
56+
if (_.get(data, 'pageData.data.configureCertificateGuide')) {
57+
this.helpCenterGuide = _.get(data, 'pageData.data.configureCertificateGuide.helpCenterGuide', this.helpCenterGuide)
58+
this.instructionsList = _.get(data, 'pageData.data.configureCertificateGuide.instructions', this.instructionsList)
59+
}
5260
})
5361
}
5462

project/ws/app/src/lib/routes/home/routes/marketplace-provider/components/provider-details/provider-details.component.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
<span class="lable">Website URL</span>
7474
</div>
7575
<mat-form-field class="w-full provider-input-form">
76-
<input formControlName="websiteUrl" matInput placeholder="Type here" maxlength="70">
76+
<input formControlName="websiteUrl" matInput placeholder="Type here" maxlength="1024">
7777
<mat-error [hidden]="false" aria-label="Event title Error|Explains event title is required "
7878
*ngIf="getControlValidation('websiteUrl', 'required')">
7979
Website URL is mandatory
@@ -82,9 +82,9 @@
8282
*ngIf="getControlValidation('websiteUrl', 'pattern')">
8383
Please give valid URL
8484
</mat-error>
85-
<mat-hint class="w-full flex justify-between items-center">
86-
<span class="input-note">Only ( a-z/A-Z/0-9 . - _ $ / : [ ]' !) characters are supported</span>
87-
<span class="input-note">{{getTextLength('websiteUrl')}}/70</span>
85+
<mat-hint class="w-full flex justify-end items-center">
86+
<!-- <span class="input-note">Please give valid URL</span> -->
87+
<span class="input-note">{{getTextLength('websiteUrl')}}/1024</span>
8888
</mat-hint>
8989
</mat-form-field>
9090
</div>

project/ws/app/src/lib/routes/home/routes/marketplace-provider/components/provider-details/provider-details.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export class ProviderDetailsComponent implements OnInit, OnChanges {
6464
this.providerFormGroup = this.formBuilder.group({
6565
contentPartnerName: new FormControl('', [Validators.required, Validators.pattern(/^[a-zA-Z0-9.\-_$/:\[\] ' !]*$/), Validators.maxLength(70)]),
6666
partnerCode: new FormControl('', [Validators.required, Validators.pattern(/^[a-zA-Z0-9]*$/), Validators.maxLength(6)]),
67-
websiteUrl: new FormControl('', [Validators.required, Validators.pattern(/^(https?|http):\/\/[^\s/$.?#].[^\s]*$/), Validators.maxLength(70)]),
67+
websiteUrl: new FormControl('', [Validators.required, Validators.pattern(/^(https?|http):\/\/[^\s/$.?#].[^\s]*$/), Validators.maxLength(1024)]),
6868
description: new FormControl('', [Validators.required, Validators.pattern(/^[a-zA-Z0-9,.\-_$/:\[\] ' !]*$/), Validators.maxLength(500)]),
6969
providerTips: this.formBuilder.array([]),
7070
})

project/ws/app/src/lib/routes/home/routes/marketplace-provider/components/transformations/transformations.component.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@
186186

187187
.certificatePreview {
188188
width: 40%;
189+
min-width: 180px;
190+
max-width: 400px;
189191
}
190192

191193
:host ::ng-deep .transformationEditor {

0 commit comments

Comments
 (0)