1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Revert "Mobile: Resolves #1044: Add create sub-notebook feature (#7728)"

This reverts commit f5fc1f2f22.

Cancel button is gone with this change
This commit is contained in:
Laurent Cozic 2023-02-10 23:48:46 +00:00
parent bf1bdf0951
commit be0fa69b3b
2 changed files with 0 additions and 17 deletions

View File

@ -63,10 +63,6 @@ class FolderScreenComponent extends BaseScreenComponent {
async saveFolderButton_press() {
let folder = Object.assign({}, this.state.folder);
if (this.props.navigation.state.parentFolderId) {
folder.parent_id = this.props.navigation.state.parentFolderId;
}
try {
folder = await Folder.save(folder, { userSideValidation: true });
} catch (error) {

View File

@ -138,19 +138,6 @@ const SideMenuContentComponent = (props: Props) => {
'',
_('Notebook: %s', folder.title),
[
{
text: _('New sub-notebook'),
onPress: () => {
props.dispatch({ type: 'SIDE_MENU_CLOSE' });
props.dispatch({
type: 'NAV_GO',
routeName: 'Folder',
folderId: null,
parentFolderId: folder.id,
});
},
},
{
text: _('Rename'),
onPress: () => {