mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-23 22:25:56 -04:00
684626ef73
Fixed: Drag and drop on mobile devices Closes ##4429
39 lines
1.3 KiB
JavaScript
39 lines
1.3 KiB
JavaScript
import React, { Component } from 'react';
|
|
import { DndProvider } from 'react-dnd-multi-backend';
|
|
import HTML5toTouch from 'react-dnd-multi-backend/dist/esm/HTML5toTouch';
|
|
import PageContent from 'Components/Page/PageContent';
|
|
import PageContentBody from 'Components/Page/PageContentBody';
|
|
import SettingsToolbarConnector from 'Settings/SettingsToolbarConnector';
|
|
import QualityProfilesConnector from './Quality/QualityProfilesConnector';
|
|
import LanguageProfilesConnector from './Language/LanguageProfilesConnector';
|
|
import DelayProfilesConnector from './Delay/DelayProfilesConnector';
|
|
import ReleaseProfilesConnector from './Release/ReleaseProfilesConnector';
|
|
|
|
// Only a single DragDrop Context can exist so it's done here to allow editing
|
|
// quality profiles and reordering delay profiles to work.
|
|
|
|
class Profiles extends Component {
|
|
|
|
//
|
|
// Render
|
|
|
|
render() {
|
|
return (
|
|
<PageContent title="Profiles">
|
|
<SettingsToolbarConnector showSave={false} />
|
|
|
|
<PageContentBody>
|
|
<DndProvider options={HTML5toTouch}>
|
|
<QualityProfilesConnector />
|
|
<LanguageProfilesConnector />
|
|
<DelayProfilesConnector />
|
|
<ReleaseProfilesConnector />
|
|
</DndProvider>
|
|
</PageContentBody>
|
|
</PageContent>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default Profiles;
|