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]>
  • Loading branch information
mejo- committed Sep 16, 2024
1 parent 434e16a commit 4a3b2bb
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions src/components/Menu/entries.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default [
keyModifiers: [MODIFIERS.Mod],
icon: Undo,
action: (command) => command.undo(),
priority: 6,
priority: 7,
},
{
key: 'redo',
Expand All @@ -68,7 +68,7 @@ export default [
keyModifiers: [MODIFIERS.Mod],
icon: Redo,
action: (command) => command.redo(),
priority: 12,
priority: 10,
},
{
key: 'bold',
Expand All @@ -80,7 +80,7 @@ export default [
action: (command) => {
return command.toggleBold()
},
priority: 7,
priority: 8,
},
{
key: 'italic',
Expand All @@ -92,7 +92,7 @@ export default [
action: (command) => {
return command.toggleItalic()
},
priority: 8,
priority: 9,
},
{
key: 'underline',
Expand All @@ -104,7 +104,7 @@ export default [
action: (command) => {
return command.toggleUnderline()
},
priority: 15,
priority: 13,
},
{
key: 'strikethrough',
Expand All @@ -116,7 +116,7 @@ export default [
action: (command) => {
return command.toggleStrike()
},
priority: 16,
priority: 14,
},
{
key: 'headings',
Expand Down Expand Up @@ -284,15 +284,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 @@ -304,7 +304,7 @@ export default [
action: (command) => {
return command.toggleBlockquote()
},
priority: 13,
priority: 11,
},
{
key: 'callouts',
Expand Down Expand Up @@ -350,7 +350,7 @@ export default [
},
},
],
priority: 6,
priority: 4,
},
{
key: 'code-block',
Expand All @@ -362,7 +362,7 @@ export default [
action: (command) => {
return command.toggleCodeBlock()
},
priority: 14,
priority: 12,
},
{
key: 'table',
Expand All @@ -372,7 +372,7 @@ export default [
action: (command) => {
return command.insertTable()
},
priority: 17,
priority: 15,
},
{
key: 'details',
Expand All @@ -382,7 +382,7 @@ export default [
action: (command) => {
return command.toggleDetails()
},
priority: 18,
priority: 16,
},
{
key: 'emoji-picker',
Expand All @@ -392,13 +392,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 4a3b2bb

Please sign in to comment.