File tree Expand file tree Collapse file tree 2 files changed +1
-17
lines changed Expand file tree Collapse file tree 2 files changed +1
-17
lines changed Original file line number Diff line number Diff line change 46
46
< div class ="group-title "> Save to Zotero.org</ div >
47
47
< div class ="group-content ">
48
48
< div id ="general-authorization-not-authorized ">
49
- < p > Zotero Connector must be authorized in order to save items to zotero.org when Zotero is not open.</ p >
50
- < p > < input type ="button " value ="Authorize " id ="general-button-authorize "/> </ p >
49
+ < p > Zotero Connector is not currently authorized to save items to zotero.org. You will be prompted for authorization if you try to save items while Zotero is not open.</ p >
51
50
</ div >
52
51
< div id ="general-authorization-authorized " style ="display:none ">
53
52
< p > Zotero Connector will save items to zotero.org as < span id ="general-span-authorization-username "> </ span > when Zotero is not open.</ p >
54
53
< p >
55
- < input type ="button " value ="Reauthorize " id ="general-button-reauthorize "/>
56
54
< input type ="button " value ="Clear Credentials " id ="general-button-clear-credentials "/>
57
55
</ p >
58
56
< p >
Original file line number Diff line number Diff line change @@ -166,8 +166,6 @@ Zotero_Preferences.General = {
166
166
167
167
ReactDOM . render ( React . createElement ( Zotero_Preferences . Components . ClientStatus , null ) ,
168
168
document . getElementById ( "client-status" ) ) ;
169
- document . getElementById ( "general-button-authorize" ) . onclick =
170
- document . getElementById ( "general-button-reauthorize" ) . onclick = Zotero_Preferences . General . authorize ;
171
169
document . getElementById ( "general-button-clear-credentials" ) . onclick = Zotero_Preferences . General . clearCredentials ;
172
170
173
171
Zotero . API . getUserInfo ( ) . then ( Zotero_Preferences . General . updateAuthorization ) ;
@@ -185,18 +183,6 @@ Zotero_Preferences.General = {
185
183
}
186
184
} ,
187
185
188
- /**
189
- * Authorizes the user
190
- */
191
- authorize : function ( ) {
192
- Zotero . API . authorize ( ) . then ( function ( data ) {
193
- Zotero_Preferences . General . updateAuthorization ( data ) ;
194
- } , function ( e ) {
195
- if ( e . message . includes ( 'cancelled' ) ) return ;
196
- alert ( "Authorization could not be completed.\n\n" + e . message )
197
- } ) ;
198
- } ,
199
-
200
186
/**
201
187
* Clears authorization
202
188
*/
You can’t perform that action at this time.
0 commit comments