Commit d9837a17 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Minor GUI fixes.

parent 769f314d
Pipeline #65676 passed with stages
in 13 minutes and 48 seconds
...@@ -176,6 +176,8 @@ class MyAutosuggestUnstyled extends React.PureComponent { ...@@ -176,6 +176,8 @@ class MyAutosuggestUnstyled extends React.PureComponent {
ref(node) ref(node)
inputRef(node) inputRef(node)
}, },
name: 'search', // try to prevent browsers ignore autocomplete="off"
type: 'search', // try to prevent browsers ignore autocomplete="off"
classes: { classes: {
input: classes.input input: classes.input
} }
...@@ -395,6 +397,7 @@ class ReferenceInput extends React.Component { ...@@ -395,6 +397,7 @@ class ReferenceInput extends React.Component {
return <TextField return <TextField
fullWidth fullWidth
{...rest} {...rest}
type="search" name="search" // attempt to avoid browsers autofill, since they seem to ignore autocomplete="off"
value={this.state.inputValue} value={this.state.inputValue}
onChange={this.handleChange.bind(this)} onChange={this.handleChange.bind(this)}
error={value === undefined} error={value === undefined}
...@@ -1048,7 +1051,7 @@ class EditUserMetadataDialogUnstyled extends React.Component { ...@@ -1048,7 +1051,7 @@ class EditUserMetadataDialogUnstyled extends React.Component {
if (submitting) { if (submitting) {
return <DialogActions> return <DialogActions>
<DialogContentText color="warning" style={{marginLeft: 16}}>Do not close the page. This might take up to several minutes for editing many entries.</DialogContentText> <DialogContentText color="error" style={{marginLeft: 16}}>Do not close the page. This might take up to several minutes for editing many entries.</DialogContentText>
<span style={{flexGrow: 1}} /> <span style={{flexGrow: 1}} />
<div className={classes.submitWrapper}> <div className={classes.submitWrapper}>
<Button onClick={this.handleSubmit} disabled={!submitEnabled} color="primary"> <Button onClick={this.handleSubmit} disabled={!submitEnabled} color="primary">
......
...@@ -297,7 +297,7 @@ export class EntryListUnstyled extends React.Component { ...@@ -297,7 +297,7 @@ export class EntryListUnstyled extends React.Component {
const selectQuery = selected ? {calc_id: selected.join(',')} : query const selectQuery = selected ? {calc_id: selected.join(',')} : query
const createActions = (props, moreActions) => <React.Fragment> const createActions = (props, moreActions) => <React.Fragment>
{example && editable ? <EditUserMetadataDialog {example && editable ? <EditUserMetadataDialog
example={example} total={totalNumber} example={example} total={selected === null ? totalNumber : selected.length}
onEditComplete={() => this.props.onChange()} onEditComplete={() => this.props.onChange()}
{...props} {...props}
/> : ''} /> : ''}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment