Feature/improve platform icon in create or update platform dialog (#5186)

* Improve platform icon

* Add default value for platform url

* Update changelog
pull/5191/head
Thomas Kaul 10 months ago committed by GitHub
parent 8475b4bc64
commit 63a8a97186
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Improved the platform icon in the create or update platform dialog of the admin control
- Improved the language localization for Catalan (`ca`)
- Improved the language localization for Dutch (`nl`)
- Improved the language localization for Italian (`it`)

@ -34,7 +34,7 @@ export class CreateOrUpdatePlatformDialog implements OnDestroy {
) {
this.platformForm = this.formBuilder.group({
name: [this.data.platform.name, Validators.required],
url: [this.data.platform.url, Validators.required]
url: [this.data.platform.url ?? 'https://', Validators.required]
});
}

@ -28,8 +28,12 @@
matInput
(keydown.enter)="$event.stopPropagation()"
/>
@if (data.platform.url) {
<gf-entity-logo class="mr-3" matSuffix [url]="data.platform.url" />
@if (platformForm.get('url')?.value) {
<gf-entity-logo
class="mr-3"
matSuffix
[url]="platformForm.get('url').value"
/>
}
</mat-form-field>
</div>

Loading…
Cancel
Save