diff --git a/frontend/src/Settings/MediaManagement/MediaManagementConnector.js b/frontend/src/Settings/MediaManagement/MediaManagementConnector.js index 782505599..797cfef10 100644 --- a/frontend/src/Settings/MediaManagement/MediaManagementConnector.js +++ b/frontend/src/Settings/MediaManagement/MediaManagementConnector.js @@ -46,7 +46,7 @@ class MediaManagementConnector extends Component { } componentWillUnmount() { - this.props.clearPendingChanges({ section: 'settings.mediaManagement' }); + this.props.clearPendingChanges({ section: `settings.${SECTION}` }); } // diff --git a/frontend/src/Settings/Profiles/Delay/DelayProfileDragPreview.js b/frontend/src/Settings/Profiles/Delay/DelayProfileDragPreview.js index 0cc47c7e4..402ddcc13 100644 --- a/frontend/src/Settings/Profiles/Delay/DelayProfileDragPreview.js +++ b/frontend/src/Settings/Profiles/Delay/DelayProfileDragPreview.js @@ -75,7 +75,4 @@ DelayProfileDragPreview.propTypes = { }) }; -/* eslint-disable new-cap */ export default DragLayer(collectDragLayer)(DelayProfileDragPreview); -/* eslint-enable new-cap */ - diff --git a/frontend/src/Settings/Profiles/Delay/DelayProfileDragSource.js b/frontend/src/Settings/Profiles/Delay/DelayProfileDragSource.js index 4661cb5a1..5c1c565e0 100644 --- a/frontend/src/Settings/Profiles/Delay/DelayProfileDragSource.js +++ b/frontend/src/Settings/Profiles/Delay/DelayProfileDragSource.js @@ -137,7 +137,6 @@ DelayProfileDragSource.propTypes = { onDelayProfileDragEnd: PropTypes.func.isRequired }; -/* eslint-disable new-cap */ export default DropTarget( DELAY_PROFILE, delayProfileDropTarget, @@ -147,4 +146,3 @@ export default DropTarget( delayProfileDragSource, collectDragSource )(DelayProfileDragSource)); -/* eslint-enable new-cap */ diff --git a/frontend/src/Settings/Profiles/Quality/QualityProfileItemDragPreview.js b/frontend/src/Settings/Profiles/Quality/QualityProfileItemDragPreview.js index ac1b3ab80..e0c6e8e8c 100644 --- a/frontend/src/Settings/Profiles/Quality/QualityProfileItemDragPreview.js +++ b/frontend/src/Settings/Profiles/Quality/QualityProfileItemDragPreview.js @@ -89,6 +89,4 @@ QualityProfileItemDragPreview.propTypes = { }) }; -/* eslint-disable new-cap */ export default DragLayer(collectDragLayer)(QualityProfileItemDragPreview); -/* eslint-enable new-cap */ diff --git a/frontend/src/Settings/Profiles/Quality/QualityProfileItemDragSource.js b/frontend/src/Settings/Profiles/Quality/QualityProfileItemDragSource.js index a775ab427..0e1838eb3 100644 --- a/frontend/src/Settings/Profiles/Quality/QualityProfileItemDragSource.js +++ b/frontend/src/Settings/Profiles/Quality/QualityProfileItemDragSource.js @@ -230,7 +230,6 @@ QualityProfileItemDragSource.propTypes = { onQualityProfileItemDragEnd: PropTypes.func.isRequired }; -/* eslint-disable new-cap */ export default DropTarget( QUALITY_PROFILE_ITEM, qualityProfileItemDropTarget, @@ -240,5 +239,3 @@ export default DropTarget( qualityProfileItemDragSource, collectDragSource )(QualityProfileItemDragSource)); -/* eslint-enable new-cap */ - diff --git a/frontend/src/Settings/Profiles/Quality/QualityProfileItems.js b/frontend/src/Settings/Profiles/Quality/QualityProfileItems.js index c41d4b77d..4c11894e2 100644 --- a/frontend/src/Settings/Profiles/Quality/QualityProfileItems.js +++ b/frontend/src/Settings/Profiles/Quality/QualityProfileItems.js @@ -74,7 +74,7 @@ class QualityProfileItems extends Component {
{ diff --git a/frontend/src/Settings/UI/UISettings.js b/frontend/src/Settings/UI/UISettings.js index 683e17f0d..083803fe7 100644 --- a/frontend/src/Settings/UI/UISettings.js +++ b/frontend/src/Settings/UI/UISettings.js @@ -20,7 +20,7 @@ export const firstDayOfWeekOptions = [ export const weekColumnOptions = [ { key: 'ddd M/D', value: 'Tue 3/25' }, { key: 'ddd MM/DD', value: 'Tue 03/25' }, - { key: 'ddd D/M', value: 'Tue 25/03' }, + { key: 'ddd D/M', value: 'Tue 25/3' }, { key: 'ddd DD/MM', value: 'Tue 25/03' } ]; diff --git a/frontend/src/Settings/UI/UISettingsConnector.js b/frontend/src/Settings/UI/UISettingsConnector.js index e2dabe9c3..ac8c9f8f1 100644 --- a/frontend/src/Settings/UI/UISettingsConnector.js +++ b/frontend/src/Settings/UI/UISettingsConnector.js @@ -39,7 +39,7 @@ class UISettingsConnector extends Component { } componentWillUnmount() { - this.props.clearPendingChanges({ section: 'settings.ui' }); + this.props.clearPendingChanges({ section: `settings.${SECTION}` }); } //