mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 10:17:16 +08:00
Revert "Editor: Bring back 'Move to Folder' in the dropdown menu"
This reverts commit f129f2ac94e825b978f9c735ef2e110e2bfb6664.
This commit is contained in:
@ -17,7 +17,7 @@ abstract class EditorState {
|
|||||||
Note getNote();
|
Note getNote();
|
||||||
}
|
}
|
||||||
|
|
||||||
enum DropDownChoices { Rename, MoveToFolder, DiscardChanges, Share }
|
enum DropDownChoices { Rename, DiscardChanges, Share }
|
||||||
|
|
||||||
AppBar buildEditorAppBar(
|
AppBar buildEditorAppBar(
|
||||||
Editor editor,
|
Editor editor,
|
||||||
@ -58,11 +58,6 @@ AppBar buildEditorAppBar(
|
|||||||
editor.renameNoteSelected(note);
|
editor.renameNoteSelected(note);
|
||||||
return;
|
return;
|
||||||
|
|
||||||
case DropDownChoices.MoveToFolder:
|
|
||||||
var note = editorState.getNote();
|
|
||||||
editor.moveNoteToFolderSelected(note);
|
|
||||||
return;
|
|
||||||
|
|
||||||
case DropDownChoices.DiscardChanges:
|
case DropDownChoices.DiscardChanges:
|
||||||
var note = editorState.getNote();
|
var note = editorState.getNote();
|
||||||
editor.discardChangesSelected(note);
|
editor.discardChangesSelected(note);
|
||||||
@ -80,10 +75,6 @@ AppBar buildEditorAppBar(
|
|||||||
value: DropDownChoices.Rename,
|
value: DropDownChoices.Rename,
|
||||||
child: Text('Edit File Name'),
|
child: Text('Edit File Name'),
|
||||||
),
|
),
|
||||||
const PopupMenuItem<DropDownChoices>(
|
|
||||||
value: DropDownChoices.MoveToFolder,
|
|
||||||
child: Text('Move to Folder'),
|
|
||||||
),
|
|
||||||
const PopupMenuItem<DropDownChoices>(
|
const PopupMenuItem<DropDownChoices>(
|
||||||
value: DropDownChoices.DiscardChanges,
|
value: DropDownChoices.DiscardChanges,
|
||||||
child: Text('Discard Changes'),
|
child: Text('Discard Changes'),
|
||||||
|
Reference in New Issue
Block a user