Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #3003 from rohanthacker/updated-hamburger-menu
Browse files Browse the repository at this point in the history
Reordered Hamburger Menu with layout mentioned in #1893
  • Loading branch information
bbondy authored Aug 18, 2016
2 parents 6cfe4cc + cdae492 commit 30b00cc
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions js/contextMenus.js
Original file line number Diff line number Diff line change
Expand Up @@ -534,19 +534,10 @@ function getEditableItems (selection, editFlags) {

function hamburgerTemplateInit (location, e) {
const template = [
{
l10nLabelId: 'new',
submenu: [
CommonMenu.newTabMenuItem(),
CommonMenu.newPrivateTabMenuItem(),
CommonMenu.newPartitionedTabMenuItem(),
CommonMenu.separatorMenuItem,
CommonMenu.newWindowMenuItem()
]
},
CommonMenu.separatorMenuItem,
CommonMenu.findOnPageMenuItem(),
CommonMenu.printMenuItem(),
CommonMenu.newTabMenuItem(),
CommonMenu.newPrivateTabMenuItem(),
CommonMenu.newPartitionedTabMenuItem(),
CommonMenu.newWindowMenuItem(),
CommonMenu.separatorMenuItem,
{
l10nLabelId: 'zoom',
Expand All @@ -570,7 +561,6 @@ function hamburgerTemplateInit (location, e) {
}]
},
CommonMenu.separatorMenuItem,
CommonMenu.preferencesMenuItem(),
{
label: locale.translation('bookmarks'),
submenu: [
Expand All @@ -587,6 +577,10 @@ function hamburgerTemplateInit (location, e) {
]
},
CommonMenu.downloadsMenuItem(),
CommonMenu.findOnPageMenuItem(),
CommonMenu.printMenuItem(),
CommonMenu.separatorMenuItem,
CommonMenu.preferencesMenuItem(),
CommonMenu.separatorMenuItem,
{
label: locale.translation('help'),
Expand All @@ -598,7 +592,8 @@ function hamburgerTemplateInit (location, e) {
CommonMenu.reportAnIssueMenuItem(),
CommonMenu.submitFeedbackMenuItem()
]
}
},
CommonMenu.quitMenuItem()
]
return template
}
Expand Down

0 comments on commit 30b00cc

Please sign in to comment.