Browse Source

UI: Fixed the inability to edit resource type in resource library when created resource

pull/11798/head
Vladyslav_Prykhodko 2 years ago
parent
commit
8c0fbbc69b
  1. 2
      ui-ngx/src/app/modules/home/pages/admin/resource/resources-library.component.ts

2
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 {
super.updateFormState();
if (this.isEdit && this.entityForm) {
if (this.isEdit && this.entityForm && !this.isAdd) {
this.entityForm.get('resourceType').disable({ emitEvent: false });
if (this.entityForm.get('resourceType').value !== ResourceType.JS_MODULE) {
this.entityForm.get('fileName').disable({ emitEvent: false });

Loading…
Cancel
Save