2017-09-04 02:20:56 +00:00
|
|
|
import React, { Component } from 'react';
|
|
|
|
import { DragDropContext } from 'react-dnd';
|
|
|
|
import HTML5Backend from 'react-dnd-html5-backend';
|
|
|
|
import PageContent from 'Components/Page/PageContent';
|
|
|
|
import PageContentBodyConnector from 'Components/Page/PageContentBodyConnector';
|
|
|
|
import SettingsToolbarConnector from 'Settings/SettingsToolbarConnector';
|
|
|
|
import QualityProfilesConnector from './Quality/QualityProfilesConnector';
|
2017-11-26 03:51:37 +00:00
|
|
|
import MetadataProfilesConnector from './Metadata/MetadataProfilesConnector';
|
2017-09-04 02:20:56 +00:00
|
|
|
import DelayProfilesConnector from './Delay/DelayProfilesConnector';
|
2019-02-23 22:39:11 +00:00
|
|
|
import ReleaseProfilesConnector from './Release/ReleaseProfilesConnector';
|
2017-09-04 02:20:56 +00:00
|
|
|
|
|
|
|
class Profiles extends Component {
|
|
|
|
|
|
|
|
//
|
|
|
|
// Render
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<PageContent title="Profiles">
|
|
|
|
<SettingsToolbarConnector
|
|
|
|
showSave={false}
|
|
|
|
/>
|
|
|
|
|
|
|
|
<PageContentBodyConnector>
|
|
|
|
<QualityProfilesConnector />
|
2017-11-26 03:51:37 +00:00
|
|
|
<MetadataProfilesConnector />
|
2017-09-04 02:20:56 +00:00
|
|
|
<DelayProfilesConnector />
|
2019-02-23 22:39:11 +00:00
|
|
|
<ReleaseProfilesConnector />
|
2017-09-04 02:20:56 +00:00
|
|
|
</PageContentBodyConnector>
|
|
|
|
</PageContent>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Only a single DragDropContext can exist so it's done here to allow editing
|
|
|
|
// quality profiles and reordering delay profiles to work.
|
2017-12-17 05:49:47 +00:00
|
|
|
/* eslint-disable new-cap */
|
2017-09-04 02:20:56 +00:00
|
|
|
export default DragDropContext(HTML5Backend)(Profiles);
|
2017-12-17 05:49:47 +00:00
|
|
|
/* eslint-enable new-cap */
|