Browse Source

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 5 days ago
committed by GitHub
parent
commit
63a8a97186
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      CHANGELOG.md
  2. 2
      apps/client/src/app/components/admin-platform/create-or-update-platform-dialog/create-or-update-platform-dialog.component.ts
  3. 8
      apps/client/src/app/components/admin-platform/create-or-update-platform-dialog/create-or-update-platform-dialog.html

1
CHANGELOG.md

@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed ### 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 Catalan (`ca`)
- Improved the language localization for Dutch (`nl`) - Improved the language localization for Dutch (`nl`)
- Improved the language localization for Italian (`it`) - Improved the language localization for Italian (`it`)

2
apps/client/src/app/components/admin-platform/create-or-update-platform-dialog/create-or-update-platform-dialog.component.ts

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

8
apps/client/src/app/components/admin-platform/create-or-update-platform-dialog/create-or-update-platform-dialog.html

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

Loading…
Cancel
Save