Skip to content

Commit

Permalink
fix(menu): Update priority numbers for menu entries
Browse files Browse the repository at this point in the history
Makes sure they're a continuous row from 1 to 16

Signed-off-by: Jonas <[email protected]>

[skip ci]
  • Loading branch information
mejo- authored and backportbot[bot] committed Sep 20, 2024
1 parent e567603 commit 909a43a
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/components/Menu/entries.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default [
keyModifiers: [MODIFIERS.Mod],
icon: Undo,
action: (command) => command.undo(),
priority: 6,
priority: 7,
},
{
key: 'redo',
Expand All @@ -67,7 +67,7 @@ export default [
keyModifiers: [MODIFIERS.Mod],
icon: Redo,
action: (command) => command.redo(),
priority: 12,
priority: 10,
},
{
key: 'bold',
Expand All @@ -79,7 +79,7 @@ export default [
action: (command) => {
return command.toggleBold()
},
priority: 7,
priority: 8,
},
{
key: 'italic',
Expand All @@ -91,7 +91,7 @@ export default [
action: (command) => {
return command.toggleItalic()
},
priority: 8,
priority: 9,
},
{
key: 'underline',
Expand All @@ -103,7 +103,7 @@ export default [
action: (command) => {
return command.toggleUnderline()
},
priority: 15,
priority: 13,
},
{
key: 'strikethrough',
Expand All @@ -115,7 +115,7 @@ export default [
action: (command) => {
return command.toggleStrike()
},
priority: 16,
priority: 14,
},
{
key: 'headings',
Expand Down Expand Up @@ -283,15 +283,15 @@ export default [
},
},
],
priority: 3,
priority: 2,
},
{
key: 'insert-link',
label: t('text', 'Insert link'),
isActive: 'link',
icon: LinkIcon,
component: ActionInsertLink,
priority: 2,
priority: 3,
},
{
key: 'blockquote',
Expand All @@ -303,7 +303,7 @@ export default [
action: (command) => {
return command.toggleBlockquote()
},
priority: 13,
priority: 11,
},
{
key: 'callouts',
Expand Down Expand Up @@ -349,7 +349,7 @@ export default [
},
},
],
priority: 6,
priority: 4,
},
{
key: 'code-block',
Expand All @@ -361,7 +361,7 @@ export default [
action: (command) => {
return command.toggleCodeBlock()
},
priority: 14,
priority: 12,
},
{
key: 'table',
Expand All @@ -371,7 +371,7 @@ export default [
action: (command) => {
return command.insertTable()
},
priority: 17,
priority: 15,
},
{
key: 'emoji-picker',
Expand All @@ -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,
},
]

0 comments on commit 909a43a

Please sign in to comment.