Skip to content

Commit

Permalink
Merge pull request #92 from mansurskTarento/marketplace-provider-ui
Browse files Browse the repository at this point in the history
allowing , in description field in onboard provider
  • Loading branch information
sureshece16 authored Nov 21, 2024
2 parents c455504 + 5ca7fbd commit 355f7bd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</div>
<div class="flex flex-col gap-1 mt-1 items-center">
<span class="file-size">Max file size: 100 MB</span>
<span class="file-type">Supported file types: CSV, .xlsx</span>
<span class="file-type">Supported file types: .csv, .xlsx</span>
</div>
</div>
</ng-container>
Expand Down Expand Up @@ -198,7 +198,7 @@
</div>
<div class="flex flex-col gap-1 mt-1 items-center">
<span class="file-size">Max file size: 100 MB</span>
<span class="file-type">Supported file types: CSV, .xlsx</span>
<span class="file-type">Supported file types: csv, .xlsx</span>
</div>
<input type="file" style="display: none;" #fileInput accept=".xlsx, .csv"
(change)="onDrop($event.target.files[0]); fileInput.value = null" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
Only ( a-z/A-Z/0-9) characters are supported
</mat-error>
<mat-hint class="w-full flex justify-between items-center">
<span class="input-note">Only ( a-z/A-Z , 0-9) characters are supported</span>
<span class="input-note">Only ( a-z/A-Z/0-9) characters are supported</span>
<span class="input-note">{{getTextLength('partnerCode')}}/6</span>
</mat-hint>
</mat-form-field>
Expand Down Expand Up @@ -104,10 +104,10 @@
</mat-error>
<mat-error [hidden]="false" aria-label="Event title Error|Explains event title is required "
*ngIf="getControlValidation('description', 'pattern')">
Only ( a-z/A-Z/0-9 . - _ $ / : [ ]' !) characters are supported
Only ( a-z/A-Z/0-9 . - _ $ / : [ ] ' , !) characters are supported
</mat-error>
<mat-hint class="w-full flex justify-between items-center">
<span class="input-note">Only ( a-z/A-Z/0-9 . - _ $ / : [ ]' !) characters are supported</span>
<span class="input-note">Only ( a-z/A-Z/0-9 . - _ $ / : [ ] ' , !) characters are supported</span>
<span class="input-note">{{getTextLength('description')}}/500</span>
</mat-hint>
</mat-form-field>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export class ProviderDetailsComponent implements OnInit, OnChanges {
contentPartnerName: new FormControl('', [Validators.required, Validators.pattern(/^[a-zA-Z0-9.\-_$/:\[\] ' !]*$/), Validators.maxLength(70)]),
partnerCode: new FormControl('', [Validators.required, Validators.pattern(/^[a-zA-Z0-9]*$/), Validators.maxLength(6)]),
websiteUrl: new FormControl('', [Validators.required, Validators.pattern(/^[a-zA-Z0-9.\-_$/:\[\] ' !]*$/), Validators.maxLength(70)]),
description: new FormControl('', [Validators.required, Validators.pattern(/^[a-zA-Z0-9.\-_$/:\[\] ' !]*$/), Validators.maxLength(500)]),
description: new FormControl('', [Validators.required, Validators.pattern(/^[a-zA-Z0-9,.\-_$/:\[\] ' !]*$/), Validators.maxLength(500)]),
providerTips: this.formBuilder.array([]),
})
// this.transforamtionForm = this.formBuilder.group({
Expand Down

0 comments on commit 355f7bd

Please sign in to comment.