mirror of
https://github.com/strapi/strapi.git
synced 2025-08-08 08:46:42 +00:00
Merge branch 'master' into fix-ctb
This commit is contained in:
commit
ac7545b53e
@ -63,6 +63,7 @@
|
||||
.addonFocus {
|
||||
border-color: #78caff;
|
||||
border-right: 0;
|
||||
transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
|
||||
}
|
||||
|
||||
.invalidSearch {
|
||||
|
@ -27,7 +27,7 @@ class InputSelectWithErrors extends React.Component {
|
||||
this.setState({ errors });
|
||||
}
|
||||
|
||||
if (isEmpty(this.props.value) && this.props.validations.required) {
|
||||
if (isEmpty(this.props.value) && this.props.validations.required === true) {
|
||||
const target = {
|
||||
type: 'select',
|
||||
name: this.props.name,
|
||||
|
@ -76,7 +76,7 @@ function validate(value, validations) {
|
||||
}
|
||||
break;
|
||||
case 'required':
|
||||
if (value.length === 0) {
|
||||
if (validationValue === true && value.length === 0) {
|
||||
errors.push({ id: 'content-manager.error.validation.required' });
|
||||
}
|
||||
break;
|
||||
|
@ -98,7 +98,7 @@
|
||||
}
|
||||
|
||||
.truncate {
|
||||
overflow-x: hidden;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
@ -7,7 +7,7 @@
|
||||
"EditForm.Input.select.inputDescription": "Files can either be uploaded on your server or on external providers.",
|
||||
"EditForm.Input.toggle.label": "Enable file upload",
|
||||
|
||||
"EmptyLi.message": "There is no uploaded files",
|
||||
"EmptyLi.message": "There are no uploaded files",
|
||||
|
||||
"EntriesNumber.number": "{number} file found",
|
||||
"EntriesNumber.number.plural": "{number} files found",
|
||||
|
Loading…
x
Reference in New Issue
Block a user