mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-22 22:14:44 -04:00
Update UI Packages
Align with Lidarr
This commit is contained in:
@@ -46,19 +46,19 @@ class InteractiveImportSelectFolderModalContent extends Component {
|
||||
|
||||
onPathChange = ({ value }) => {
|
||||
this.setState({ folder: value });
|
||||
}
|
||||
};
|
||||
|
||||
onRecentPathPress = (folder) => {
|
||||
this.setState({ folder });
|
||||
}
|
||||
};
|
||||
|
||||
onQuickImportPress = () => {
|
||||
this.props.onQuickImportPress(this.state.folder);
|
||||
}
|
||||
};
|
||||
|
||||
onInteractiveImportPress = () => {
|
||||
this.props.onInteractiveImportPress(this.state.folder);
|
||||
}
|
||||
};
|
||||
|
||||
//
|
||||
// Render
|
||||
|
||||
+3
-3
@@ -38,16 +38,16 @@ class InteractiveImportSelectFolderModalContentConnector extends Component {
|
||||
});
|
||||
|
||||
this.props.onModalClose();
|
||||
}
|
||||
};
|
||||
|
||||
onInteractiveImportPress = (folder) => {
|
||||
this.props.addRecentFolder({ folder });
|
||||
this.props.onFolderSelect(folder);
|
||||
}
|
||||
};
|
||||
|
||||
onRemoveRecentFolderPress = (folder) => {
|
||||
this.props.removeRecentFolder({ folder });
|
||||
}
|
||||
};
|
||||
|
||||
//
|
||||
// Render
|
||||
|
||||
@@ -15,7 +15,7 @@ class RecentFolderRow extends Component {
|
||||
|
||||
onPress = () => {
|
||||
this.props.onPress(this.props.folder);
|
||||
}
|
||||
};
|
||||
|
||||
onRemovePress = (event) => {
|
||||
event.stopPropagation();
|
||||
@@ -26,7 +26,7 @@ class RecentFolderRow extends Component {
|
||||
} = this.props;
|
||||
|
||||
onRemoveRecentFolderPress(folder);
|
||||
}
|
||||
};
|
||||
|
||||
//
|
||||
// Render
|
||||
|
||||
Reference in New Issue
Block a user