Minor Sanitization for aesthetics

Deleting the input when closing the overlay for
aesthetics purpose

Signed-off-by: Matheus Alves <matheus.r.noya.alves@tecnico.ulisboa.pt>
Co-authored-by: Inês Simões <ines.p.simoes@tecnico.ulisboa.pt>
This commit is contained in:
Matheus Alves 2025-06-12 12:14:04 +01:00
parent 78d9b7b724
commit 361667dcf8

View File

@ -35,6 +35,11 @@ export default class RenameRunFormUiHandler extends FormModalUiHandler {
show(args: any[]): boolean {
if (super.show(args)) {
if (this.inputs?.length) {
this.inputs.forEach(input => {
input.text = "";
});
}
const config = args[0] as ModalConfig;
this.submitAction = _ => {
this.sanitizeInputs();