Details of the
+
+ Details of the
request
are required
diff --git a/frontend/src/app/features/components/bulk-takedown-request/bulk-takedown-request.component.ts b/frontend/src/app/features/components/bulk-takedown-request/bulk-takedown-request.component.ts
index dfc76a6e..09c8f740 100644
--- a/frontend/src/app/features/components/bulk-takedown-request/bulk-takedown-request.component.ts
+++ b/frontend/src/app/features/components/bulk-takedown-request/bulk-takedown-request.component.ts
@@ -18,7 +18,6 @@ import { validateEmailListString } from '../../../common/consts/validators.const
import { ErrorHandlingService } from '../../../common/services/error-handling.service';
import { GlobalLoaderService } from '../../../common/services/global-loader.service';
import { ListingTableRow } from '../../../common/models/listing-table-row';
-import { EditorModule, EditorTextChangeEvent } from 'primeng/editor';
@Component({
selector: 'app-bulk-takedown-request',
@@ -34,7 +33,6 @@ import { EditorModule, EditorTextChangeEvent } from 'primeng/editor';
DialogModule,
ChipsModule,
ReactiveFormsModule,
- EditorModule,
],
templateUrl: './bulk-takedown-request.component.html',
styleUrl: './bulk-takedown-request.component.scss'
@@ -64,7 +62,7 @@ export class BulkTakedownRequestComponent implements OnInit {
public get isWithStandardDetailControl(): AbstractControl {
return this.myForm.controls['isWithStandardDetail'];
}
- public get commentControl(): AbstractControl {
+ public get customDetailTxtControl(): AbstractControl {
return this.myForm.controls['customDetailTxt'];
}
@@ -95,10 +93,6 @@ export class BulkTakedownRequestComponent implements OnInit {
});
}
- onEditorChanged(_: EditorTextChangeEvent): void {
- this.commentControl.updateValueAndValidity();
- }
-
onSort(property: keyof ListingDetails): void {
if (this.sort) {
if (this.sort.prop === property) {
@@ -155,11 +149,11 @@ export class BulkTakedownRequestComponent implements OnInit {
onWithStandardDetailChanged(value: CheckboxChangeEvent): void {
if (value.checked)
- this.commentControl.removeValidators([Validators.required]);
+ this.customDetailTxtControl.removeValidators([Validators.required]);
else
- this.commentControl.addValidators([Validators.required]);
+ this.customDetailTxtControl.addValidators([Validators.required]);
- this.commentControl.updateValueAndValidity();
+ this.customDetailTxtControl.updateValueAndValidity();
this.myForm.updateValueAndValidity();
}
diff --git a/frontend/src/app/features/components/delisting-request/delisting-request.component.html b/frontend/src/app/features/components/delisting-request/delisting-request.component.html
index 7ec0071d..5fa1855f 100644
--- a/frontend/src/app/features/components/delisting-request/delisting-request.component.html
+++ b/frontend/src/app/features/components/delisting-request/delisting-request.component.html
@@ -85,28 +85,15 @@ Add Details of your request