ui: theme changer

This commit is contained in:
undefined committed 2022-01-15 15:57:44 +08:00
1 parent 8e02eb5bf9
commit 7dd2d82eb8
9 files changed
+103 -65

No files matched your search

@@ -64,9 +64,6 @@ const mapDispatchToProps = (dispatch) => ({
payload: request.get(UiContext.getSubmissionsUrl),
});
},
handleClickRefresh() {
if (this.props.recordsVisible) this.loadSubmissions();
},
});
export default connect(mapStateToProps, mapDispatchToProps)(class ScratchpadToolbarContainer extends React.PureComponent {
@@ -121,18 +118,6 @@ export default connect(mapStateToProps, mapDispatchToProps)(class ScratchpadTool
{' '}
(F10)
</ToolbarButton>
<ToolbarButton
data-tooltip={i18n('Refresh Records')}
className="scratchpad__toolbar__refresh"
data-global-hotkey="alt+f"
onClick={() => this.props.handleClickRefresh()}
>
<Icon name="refresh" />
{' '}
{i18n('Refresh')}
{' '}
(Alt+F)
</ToolbarButton>
<ToolbarButton
data-global-hotkey="alt+q"
data-tooltip={`${i18n('Quit Scratchpad')} (Alt+Q)`}