Browse Source

Fixed Editing Resource title for JS module Resource

pull/11288/head
mpetrov 2 years ago
parent
commit
75c8a9ed5e
  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

@ -103,9 +103,9 @@ export class ResourcesLibraryComponent extends EntityComponent<Resource> impleme
updateForm(entity: Resource) {
if (this.isEdit) {
this.entityForm.get('resourceType').disable({emitEvent: false});
this.entityForm.get('data').disable({emitEvent: false});
if (entity.resourceType !== ResourceType.JS_MODULE) {
this.entityForm.get('fileName').disable({emitEvent: false});
this.entityForm.get('data').disable({emitEvent: false});
}
}
this.entityForm.patchValue({

Loading…
Cancel
Save