-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/DEV-228 #696
Fix/DEV-228 #696
Conversation
* Adjust custom button to be in line with form fields * ID-4527 [FIX] Adjust custom button to be in line with form fields
…dion of Add fields overlay after switching between settings tabs (#682)
…or on the screen if it is marked as required.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
js/components/map.js
Outdated
var rules = { | ||
value: {} | ||
}; | ||
|
||
if (this.required && !this.readonly) { | ||
rules.value.required = function() { | ||
return $vm.value.address; | ||
return this.value && this.value.address ? true : false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return this.value && this.value.address ? true : false; | |
return !!(this.value?.address); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dwfliplet I got ESLint error for ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then go for:
return !!(this.value && this.value.address);
Product areas affected
Fliiplet Form Builder
What does this PR do?
Ensures the Map field is displayed in the form settings or on the screen if it is marked as required and user is able to change and save settings like "Field name", "Field label", "Description" etc for any form field.
JIRA ticket
DEV-227
DEV-228