@@ -33,6 +33,7 @@ class ImportBrowserDataPanel extends React.Component {
33
33
this . onToggleHistory = this . onToggleSetting . bind ( this , 'history' )
34
34
this . onToggleFavorites = this . onToggleSetting . bind ( this , 'favorites' )
35
35
this . onToggleCookies = this . onToggleSetting . bind ( this , 'cookies' )
36
+ this . onTogglePasswords = this . onToggleSetting . bind ( this , 'passwords' )
36
37
this . onImport = this . onImport . bind ( this )
37
38
this . onChange = this . onChange . bind ( this )
38
39
}
@@ -50,6 +51,7 @@ class ImportBrowserDataPanel extends React.Component {
50
51
data . favorites = this . props . favorites
51
52
data . history = this . props . history
52
53
data . type = this . props . type
54
+ data . passwords = this . props . passwords
53
55
54
56
appActions . importBrowserData ( Immutable . fromJS ( data ) )
55
57
this . onHide ( )
@@ -83,11 +85,13 @@ class ImportBrowserDataPanel extends React.Component {
83
85
props . isSupportingHistory = currentSelectedBrowser . get ( 'history' , false )
84
86
props . isSupportingFavorites = currentSelectedBrowser . get ( 'favorites' , false )
85
87
props . isSupportingCookies = currentSelectedBrowser . get ( 'cookies' , false )
88
+ props . isSupportingPasswords = currentSelectedBrowser . get ( 'passwords' , false )
86
89
props . currentIndex = index
87
90
props . cookies = importBrowserDataSelected . get ( 'cookies' )
88
91
props . favorites = importBrowserDataSelected . get ( 'favorites' )
89
92
props . history = importBrowserDataSelected . get ( 'history' )
90
93
props . type = importBrowserDataSelected . get ( 'type' )
94
+ props . passwords = importBrowserDataSelected . get ( 'passwords' )
91
95
92
96
// used in other functions
93
97
props . selectedIndex = importBrowserDataSelected . get ( 'index' )
@@ -132,6 +136,13 @@ class ImportBrowserDataPanel extends React.Component {
132
136
onClick = { this . onToggleCookies }
133
137
disabled = { ! this . props . isSupportingCookies }
134
138
/>
139
+ < SwitchControl
140
+ rightl10nId = 'savedPasswords'
141
+ checkedOn = { this . props . passwords }
142
+ onClick = { this . onTogglePasswords }
143
+ disabled = { ! this . props . isSupportingPasswords }
144
+ />
145
+
135
146
</ CommonFormSection >
136
147
< CommonFormSection >
137
148
< div data-l10n-id = 'importDataCloseBrowserWarning' />
0 commit comments