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 {
ref(node)
inputRef(node)
},
name: 'search', // try to prevent browsers ignore autocomplete="off"
type: 'search', // try to prevent browsers ignore autocomplete="off"
classes: {
input: classes.input
}
......@@ -395,6 +397,7 @@ class ReferenceInput extends React.Component {
return <TextField
fullWidth
{...rest}
type="search" name="search" // attempt to avoid browsers autofill, since they seem to ignore autocomplete="off"
value={this.state.inputValue}
onChange={this.handleChange.bind(this)}
error={value === undefined}
......@@ -1048,7 +1051,7 @@ class EditUserMetadataDialogUnstyled extends React.Component {
if (submitting) {
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}} />
<div className={classes.submitWrapper}>
<Button onClick={this.handleSubmit} disabled={!submitEnabled} color="primary">
......
......@@ -297,7 +297,7 @@ export class EntryListUnstyled extends React.Component {
const selectQuery = selected ? {calc_id: selected.join(',')} : query
const createActions = (props, moreActions) => <React.Fragment>
{example && editable ? <EditUserMetadataDialog
example={example} total={totalNumber}
example={example} total={selected === null ? totalNumber : selected.length}
onEditComplete={() => this.props.onChange()}
{...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