Browse Source

Refactoring

pull/3218/head
Thomas Kaul 1 year ago
parent
commit
262c0ba7a3
  1. 5
      apps/api/src/app/admin/update-asset-profile.dto.ts
  2. 2
      apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.html

5
apps/api/src/app/admin/update-asset-profile.dto.ts

@ -48,9 +48,10 @@ export class UpdateAssetProfileDto {
[dataProvider: string]: string; [dataProvider: string]: string;
}; };
@IsOptional()
@IsUrl({ @IsUrl({
protocols: ['http', 'https'] protocols: ['https'],
require_protocol: true
}) })
@IsOptional()
url?: string; url?: string;
} }

2
apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.html

@ -331,7 +331,7 @@
</div> </div>
<div> <div>
<mat-form-field appearance="outline" class="w-100 without-hint"> <mat-form-field appearance="outline" class="w-100 without-hint">
<mat-label i18n>URL</mat-label> <mat-label i18n>Url</mat-label>
<input formControlName="url" matInput type="text" /> <input formControlName="url" matInput type="text" />
</mat-form-field> </mat-form-field>
</div> </div>

Loading…
Cancel
Save