2017-09-04 02:20:56 +00:00
|
|
|
import React, { Component } from 'react';
|
2019-08-05 00:44:34 +00:00
|
|
|
import { DndProvider } from 'react-dnd';
|
2020-10-05 02:21:45 +00:00
|
|
|
import { HTML5Backend } from 'react-dnd-html5-backend';
|
2017-09-04 02:20:56 +00:00
|
|
|
import PageContent from 'Components/Page/PageContent';
|
2020-06-30 01:35:29 +00:00
|
|
|
import PageContentBody from 'Components/Page/PageContentBody';
|
2017-09-04 02:20:56 +00:00
|
|
|
import SettingsToolbarConnector from 'Settings/SettingsToolbarConnector';
|
|
|
|
import DelayProfilesConnector from './Delay/DelayProfilesConnector';
|
2020-09-07 01:33:10 +00:00
|
|
|
import MetadataProfilesConnector from './Metadata/MetadataProfilesConnector';
|
|
|
|
import QualityProfilesConnector from './Quality/QualityProfilesConnector';
|
2019-02-23 22:39:11 +00:00
|
|
|
import ReleaseProfilesConnector from './Release/ReleaseProfilesConnector';
|
2017-09-04 02:20:56 +00:00
|
|
|
|
2019-08-05 00:44:34 +00:00
|
|
|
// Only a single DragDrop Context can exist so it's done here to allow editing
|
|
|
|
// quality profiles and reordering delay profiles to work.
|
|
|
|
|
2017-09-04 02:20:56 +00:00
|
|
|
class Profiles extends Component {
|
|
|
|
|
|
|
|
//
|
|
|
|
// Render
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<PageContent title="Profiles">
|
|
|
|
<SettingsToolbarConnector
|
|
|
|
showSave={false}
|
|
|
|
/>
|
|
|
|
|
2020-06-30 01:35:29 +00:00
|
|
|
<PageContentBody>
|
2019-08-05 00:44:34 +00:00
|
|
|
<DndProvider backend={HTML5Backend}>
|
|
|
|
<QualityProfilesConnector />
|
|
|
|
<MetadataProfilesConnector />
|
|
|
|
<DelayProfilesConnector />
|
|
|
|
<ReleaseProfilesConnector />
|
|
|
|
</DndProvider>
|
2020-06-30 01:35:29 +00:00
|
|
|
</PageContentBody>
|
2017-09-04 02:20:56 +00:00
|
|
|
</PageContent>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-08-05 00:44:34 +00:00
|
|
|
export default Profiles;
|