"Group not found" added

This commit is contained in:
Roman Hergenreder 2020-06-23 21:13:04 +02:00
parent 9cbd129d4e
commit 28558fe63f
2 changed files with 9 additions and 1 deletions

2
js/admin.min.js vendored

File diff suppressed because one or more lines are too long

@ -170,6 +170,14 @@ export default class EditUser extends React.Component {
placeholder = "";
}
if (this.state.searchString.length > 0 && possibleOptions.length === 0) {
possibleOptions.push(
<li className={"select2-results__option"} role={"option"} key={"group-notfound"} aria-selected={true}>
Group not found
</li>
);
}
form = <form role={"form"} onSubmit={this.onSubmitForm.bind(this)}>
<div className={"form-group"}>
<label htmlFor={"username"}>Username</label>