Skip to content

Regression: fix modal submit#12233

Merged
sampaiodiego merged 3 commits intodevelopfrom
fix-enter-modal
Oct 4, 2018
Merged

Regression: fix modal submit#12233
sampaiodiego merged 3 commits intodevelopfrom
fix-enter-modal

Conversation

@ggazzo
Copy link
Copy Markdown
Member

@ggazzo ggazzo commented Oct 1, 2018

No description provided.

@ggazzo ggazzo requested a review from sampaiodiego October 1, 2018 18:45
@sampaiodiego sampaiodiego added this to the 0.70.1 milestone Oct 2, 2018
@ggazzo ggazzo requested a review from tassoevan October 2, 2018 15:01
@ggazzo ggazzo added the area: ui/ux Related to UI/UX, frontend code, accessibility, and user interaction label Oct 2, 2018
@@ -16,14 +16,15 @@ Template.addWebdavAccount.events({
const formData = instance.validate();
instance.loading.set(true);
if (formData) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May I suggest to swap the if condition?

if (!formData) {
	instance.loading.set(false);
	return;
}
Meteor.call('addWebdavAccount', formData, function(error, response) { ... });

@sampaiodiego sampaiodiego requested a deployment to rocket-chat-pr-12233 October 4, 2018 18:15 Abandoned
@sampaiodiego sampaiodiego changed the title Regression: fix submit modal Regression: fix modal submit Oct 4, 2018
@sampaiodiego sampaiodiego merged commit 7c3a213 into develop Oct 4, 2018
@sampaiodiego sampaiodiego deleted the fix-enter-modal branch October 4, 2018 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ui/ux Related to UI/UX, frontend code, accessibility, and user interaction

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants