From 909a43a09c5c57d778f41f26fce3e604b61b14ca Mon Sep 17 00:00:00 2001 From: Jonas Date: Sat, 14 Sep 2024 08:25:02 +0200 Subject: [PATCH] fix(menu): Update priority numbers for menu entries Makes sure they're a continuous row from 1 to 16 Signed-off-by: Jonas [skip ci] --- src/components/Menu/entries.js | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/components/Menu/entries.js b/src/components/Menu/entries.js index 283643c4715..be28efef2f5 100644 --- a/src/components/Menu/entries.js +++ b/src/components/Menu/entries.js @@ -58,7 +58,7 @@ export default [ keyModifiers: [MODIFIERS.Mod], icon: Undo, action: (command) => command.undo(), - priority: 6, + priority: 7, }, { key: 'redo', @@ -67,7 +67,7 @@ export default [ keyModifiers: [MODIFIERS.Mod], icon: Redo, action: (command) => command.redo(), - priority: 12, + priority: 10, }, { key: 'bold', @@ -79,7 +79,7 @@ export default [ action: (command) => { return command.toggleBold() }, - priority: 7, + priority: 8, }, { key: 'italic', @@ -91,7 +91,7 @@ export default [ action: (command) => { return command.toggleItalic() }, - priority: 8, + priority: 9, }, { key: 'underline', @@ -103,7 +103,7 @@ export default [ action: (command) => { return command.toggleUnderline() }, - priority: 15, + priority: 13, }, { key: 'strikethrough', @@ -115,7 +115,7 @@ export default [ action: (command) => { return command.toggleStrike() }, - priority: 16, + priority: 14, }, { key: 'headings', @@ -283,7 +283,7 @@ export default [ }, }, ], - priority: 3, + priority: 2, }, { key: 'insert-link', @@ -291,7 +291,7 @@ export default [ isActive: 'link', icon: LinkIcon, component: ActionInsertLink, - priority: 2, + priority: 3, }, { key: 'blockquote', @@ -303,7 +303,7 @@ export default [ action: (command) => { return command.toggleBlockquote() }, - priority: 13, + priority: 11, }, { key: 'callouts', @@ -349,7 +349,7 @@ export default [ }, }, ], - priority: 6, + priority: 4, }, { key: 'code-block', @@ -361,7 +361,7 @@ export default [ action: (command) => { return command.toggleCodeBlock() }, - priority: 14, + priority: 12, }, { key: 'table', @@ -371,7 +371,7 @@ export default [ action: (command) => { return command.insertTable() }, - priority: 17, + priority: 15, }, { key: 'emoji-picker', @@ -381,13 +381,13 @@ export default [ action: (command, emojiObject = {}) => { return command.emoji(emojiObject) }, - priority: 3, + priority: 5, }, { key: 'insert-attachment', label: t('text', 'Insert attachment'), icon: Paperclip, component: ActionAttachmentUpload, - priority: 1, + priority: 6, }, ]