Browse Source
Merge pull request #11798 from vvlladd28/bug/recource-library/select-recource-type
Fixed the inability to edit resource type in resource library when created resource
pull/11820/head
Igor Kulikov
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
ui-ngx/src/app/modules/home/pages/admin/resource/resources-library.component.ts
|
|
@ -92,7 +92,7 @@ export class ResourcesLibraryComponent extends EntityComponent<Resource> impleme |
|
|
|
|
|
|
|
|
override updateFormState(): void { |
|
|
override updateFormState(): void { |
|
|
super.updateFormState(); |
|
|
super.updateFormState(); |
|
|
if (this.isEdit && this.entityForm) { |
|
|
if (this.isEdit && this.entityForm && !this.isAdd) { |
|
|
this.entityForm.get('resourceType').disable({ emitEvent: false }); |
|
|
this.entityForm.get('resourceType').disable({ emitEvent: false }); |
|
|
if (this.entityForm.get('resourceType').value !== ResourceType.JS_MODULE) { |
|
|
if (this.entityForm.get('resourceType').value !== ResourceType.JS_MODULE) { |
|
|
this.entityForm.get('fileName').disable({ emitEvent: false }); |
|
|
this.entityForm.get('fileName').disable({ emitEvent: false }); |
|
|
|