mirror of
https://github.com/strapi/strapi.git
synced 2025-09-21 14:31:16 +00:00
Lowercase attributes name in content-type-builder, select default connection when creating a model, remove check out our tutorial link
This commit is contained in:
parent
77488007fc
commit
12d92b88df
@ -39,7 +39,6 @@
|
||||
margin-left: 3.9rem;
|
||||
color: #333740;
|
||||
font-weight: 600;
|
||||
text-transform: capitalize;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
"label": "content-type-builder.form.contentType.item.connections",
|
||||
"name": "connection",
|
||||
"type": "select",
|
||||
"value": "",
|
||||
"value": "default",
|
||||
"items": [{}],
|
||||
"validations": {
|
||||
"required": true
|
||||
|
@ -10,7 +10,7 @@ import { createStructuredSelector } from 'reselect';
|
||||
import { bindActionCreators, compose } from 'redux';
|
||||
import { get, has, size, replace, startCase, findIndex } from 'lodash';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { Link, NavLink } from 'react-router-dom';
|
||||
import { NavLink } from 'react-router-dom';
|
||||
import PropTypes from 'prop-types';
|
||||
import { router } from 'app';
|
||||
|
||||
@ -101,18 +101,18 @@ export class ModelPage extends React.Component { // eslint-disable-line react/pr
|
||||
<FormattedMessage id="content-type-builder.menu.section.documentation.guide" />
|
||||
<FormattedMessage id="content-type-builder.menu.section.documentation.guideLink">
|
||||
{(message) => (
|
||||
<a href="http://strapi.io/documentation" target="_blank">{message}</a>
|
||||
<a href="http://strapi.io/documentation/3.x.x/guides/models.html" target="_blank">{message}</a>
|
||||
)}
|
||||
</FormattedMessage>
|
||||
</li>
|
||||
<li>
|
||||
{/*<li>
|
||||
<FormattedMessage id="content-type-builder.menu.section.documentation.tutorial" />
|
||||
<FormattedMessage id="content-type-builder.menu.section.documentation.tutorialLink">
|
||||
{(mess) => (
|
||||
<Link to="#" target="_blank">{mess}</Link>
|
||||
)}
|
||||
</FormattedMessage>
|
||||
</li>
|
||||
</li>*/}
|
||||
</ul>
|
||||
</div>
|
||||
)
|
||||
|
@ -129,7 +129,6 @@ export function* fetchDatabases(action) {
|
||||
const opts = {
|
||||
method: 'GET',
|
||||
};
|
||||
|
||||
const requestUrlListDatabases = `/settings-manager/configurations/databases/${action.environment}`;
|
||||
const requestUrlAppDatabases = '/settings-manager/configurations/database/model';
|
||||
|
||||
@ -186,7 +185,6 @@ export function* postLanguage() {
|
||||
body,
|
||||
method: 'POST',
|
||||
};
|
||||
|
||||
const requestUrl = '/settings-manager/configurations/languages';
|
||||
|
||||
const resp = yield call(request, requestUrl, opts, true);
|
||||
@ -216,7 +214,6 @@ export function* postDatabase(action) {
|
||||
method: 'POST',
|
||||
body,
|
||||
};
|
||||
|
||||
const requestUrl = `/settings-manager/configurations/databases/${action.endPoint}`;
|
||||
|
||||
const resp = yield call(request, requestUrl, opts, true);
|
||||
@ -245,15 +242,11 @@ export function* settingsEdit(action) {
|
||||
// Show button loader
|
||||
yield put(setLoader());
|
||||
|
||||
window.Strapi.notification.info('settings-manager.strapi.notification.info.serverRestart');
|
||||
|
||||
const opts = {
|
||||
body: action.newSettings,
|
||||
method: 'PUT',
|
||||
};
|
||||
|
||||
const requestUrl = `/settings-manager/configurations/${action.endPoint}`;
|
||||
|
||||
const resp = yield call(request, requestUrl, opts, true);
|
||||
|
||||
if (resp.ok) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user