Skip to content

Prevent clicking on disabled button

kushalpandya requested to merge 29432-prevent-click-disabled-btn into master

What does this MR do?

Fixes #29432 (closed)

Why was this MR needed?

While creating new project, if project title (AKA project path) is empty then GitLab export button is shown as disabled, but clicking on the same shows flash banner saying Please enter path and name for the project to be imported to, which is unnecessary since we're proactively keeping the button disabled when title is empty. This MR fixes two things around the flow.

  • Clicking on GitLab export button, while it is disabled, does nothing.
  • Project name input ignores white space as project name.

Screenshots

Before

Peek_2017-03-14_14-04

After

GitLab_export-new

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #29432 (closed)

Merge request reports