This repository was archived by the owner on Dec 11, 2019. It is now read-only.
Commit cc6ba03 1 parent 8790898 commit cc6ba03 Copy full SHA for cc6ba03
File tree 5 files changed +30
-3
lines changed
extensions/brave/locales/en-US
5 files changed +30
-3
lines changed Original file line number Diff line number Diff line change @@ -421,6 +421,7 @@ const createWindowSubmenu = () => {
421
421
CommonMenu . separatorMenuItem ,
422
422
CommonMenu . bookmarksManagerMenuItem ( ) ,
423
423
CommonMenu . downloadsMenuItem ( ) ,
424
+ CommonMenu . extensionsMenuItem ( ) ,
424
425
CommonMenu . passwordsMenuItem ( )
425
426
]
426
427
Original file line number Diff line number Diff line change @@ -250,6 +250,24 @@ module.exports.downloadsMenuItem = () => {
250
250
}
251
251
}
252
252
253
+ module . exports . extensionsMenuItem = ( ) => {
254
+ return {
255
+ label : locale . translation ( 'extensionsManager' ) ,
256
+ click : ( item , focusedWindow ) => {
257
+ if ( BrowserWindow . getAllWindows ( ) . length === 0 ) {
258
+ appActions . newWindow ( Immutable . fromJS ( {
259
+ location : 'about:preferences#extensions'
260
+ } ) )
261
+ } else {
262
+ appActions . maybeCreateTabRequested ( {
263
+ url : 'about:preferences#extensions' ,
264
+ windowId : getCurrentWindowId ( )
265
+ } )
266
+ }
267
+ }
268
+ }
269
+ }
270
+
253
271
module . exports . passwordsMenuItem = ( ) => {
254
272
return {
255
273
label : locale . translation ( 'passwordsManager' ) ,
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ find=Find…
85
85
checkForUpdates =Check for Updates…
86
86
preferences =Preferences…
87
87
settings =Settings…
88
- bookmarksManager =Bookmarks Manager …
88
+ bookmarksManager =Bookmarks…
89
89
importBrowserData =Import Browser Data…
90
90
exportBookmarks =Export Bookmarks…
91
91
submitFeedback =Submit Feedback…
@@ -141,8 +141,9 @@ aboutApp=About Brave
141
141
quit =Quit
142
142
quitApp =Quit Brave
143
143
inspectElement =Inspect Element
144
- downloadsManager =Downloads Manager…
145
- passwordsManager =Passwords Manager…
144
+ downloadsManager =Downloads…
145
+ passwordsManager =Passwords…
146
+ extensionsManager =Extensions…
146
147
zoom =Zoom
147
148
new =New
148
149
learnSpelling =Learn Spelling
Original file line number Diff line number Diff line change @@ -220,6 +220,7 @@ var rendererIdentifiers = function () {
220
220
'noThanks' ,
221
221
'neverForThisSite' ,
222
222
'passwordsManager' ,
223
+ 'extensionsManager' ,
223
224
'downloadItemPause' ,
224
225
'downloadItemResume' ,
225
226
'downloadItemCancel' ,
Original file line number Diff line number Diff line change @@ -144,6 +144,12 @@ describe('Common menu module unit tests', function () {
144
144
} )
145
145
} )
146
146
147
+ describe ( 'extensionsMenuItem' , function ( ) {
148
+ it ( 'has the expected defaults set' , function ( ) {
149
+ checkExpectedDefaults ( commonMenu . extensionsMenuItem , false )
150
+ } )
151
+ } )
152
+
147
153
describe ( 'importBrowserDataMenuItem' , function ( ) {
148
154
it ( 'has the expected defaults set' , function ( ) {
149
155
checkExpectedDefaults ( commonMenu . importBrowserDataMenuItem , false )
You can’t perform that action at this time.
0 commit comments