mirror of
https://github.com/laurent22/joplin.git
synced 2024-11-24 08:12:24 +02:00
This reverts commit f5fc1f2f22
.
Cancel button is gone with this change
This commit is contained in:
parent
bf1bdf0951
commit
be0fa69b3b
@ -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) {
|
||||
|
@ -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: () => {
|
||||
|
Loading…
Reference in New Issue
Block a user