"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "packages/app-desktop/gui/ClipperConfigScreen.jsx" between
joplin-2.1.8.tar.gz and joplin-2.1.9.tar.gz

About: Joplin is a cross-platform note taking and to-do application with synchronisation capabilities.

ClipperConfigScreen.jsx  (joplin-2.1.8):ClipperConfigScreen.jsx  (joplin-2.1.9)
skipping to change at line 43 skipping to change at line 43
firefoxButton_click() { firefoxButton_click() {
bridge().openExternal('https://addons.mozilla.org/en-US/firefox/a ddon/joplin-web-clipper/'); bridge().openExternal('https://addons.mozilla.org/en-US/firefox/a ddon/joplin-web-clipper/');
} }
copyToken_click() { copyToken_click() {
clipboard.writeText(this.props.apiToken); clipboard.writeText(this.props.apiToken);
alert(_('Token has been copied to the clipboard!')); alert(_('Token has been copied to the clipboard!'));
} }
componentDidUpdate(prevProps) {
if (prevProps.needApiAuth !== this.props.needApiAuth && this.prop
s.needApiAuth) {
// Ideally when API auth is needed, we should display the
// notification in this screen, however it's not setup fo
r it yet.
// So instead, we just go back to the main screen where t
he
// notification will be displayed.
// https://discourse.joplinapp.org/t/web-clipper-2-1-3-no
t-working/18582/27
this.props.dispatch({ type: 'NAV_BACK' });
}
}
renewToken_click() { renewToken_click() {
if (confirm(_('Are you sure you want to renew the authorisation t oken?'))) { if (confirm(_('Are you sure you want to renew the authorisation t oken?'))) {
void EncryptionService.instance() void EncryptionService.instance()
.generateApiToken() .generateApiToken()
.then((token) => { .then((token) => {
Setting.setValue('api.token', token); Setting.setValue('api.token', token);
}); });
} }
} }
skipping to change at line 174 skipping to change at line 185
); );
} }
} }
const mapStateToProps = state => { const mapStateToProps = state => {
return { return {
themeId: state.settings.theme, themeId: state.settings.theme,
clipperServer: state.clipperServer, clipperServer: state.clipperServer,
clipperServerAutoStart: state.settings['clipperServer.autoStart'] , clipperServerAutoStart: state.settings['clipperServer.autoStart'] ,
apiToken: state.settings['api.token'], apiToken: state.settings['api.token'],
needApiAuth: state.needApiAuth,
}; };
}; };
const ClipperConfigScreen = connect(mapStateToProps)(ClipperConfigScreenComponen t); const ClipperConfigScreen = connect(mapStateToProps)(ClipperConfigScreenComponen t);
module.exports = { ClipperConfigScreen }; module.exports = { ClipperConfigScreen };
 End of changes. 2 change blocks. 
0 lines changed or deleted 16 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)