Skip to content

Commit 556ac05

Browse files
makdenissmakdeniss
authored andcommitted
fix: address PR comments (#335)
1 parent cb47c83 commit 556ac05

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

projects/lib/services/resource/resource.service.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,5 +367,4 @@ export class ResourceService {
367367
private isNamespacedResource(nodeContext: ResourceNodeContext) {
368368
return nodeContext?.resourceDefinition?.scope === 'Namespaced';
369369
}
370-
371370
}

projects/wc/src/app/components/generic-ui/list-view/create-resource-modal/create-resource-modal.component.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ export class CreateResourceModalComponent implements OnInit {
9494
set(result, key.replaceAll('_', '.'), this.form.value[key]);
9595
}
9696

97-
console.log('result: ', result);
9897
if (this.isEditMode()) {
9998
this.updateResource.emit(result);
10099
} else {
@@ -148,11 +147,6 @@ export class CreateResourceModalComponent implements OnInit {
148147
? getValueByPath(resource, fieldDefinition.property)
149148
: '';
150149
obj[fieldName] = new FormControl(fieldValue, validator);
151-
const isDisabled =
152-
!!resource && this.isCreateFieldOnly(fieldDefinition);
153-
if (isDisabled) {
154-
obj[fieldName].disable({ onlySelf: true });
155-
}
156150

157151
return obj;
158152
},

0 commit comments

Comments
 (0)