Skip to content

Commit

Permalink
coverage search for user
Browse files Browse the repository at this point in the history
  • Loading branch information
dzonidoo committed Oct 12, 2023
1 parent a727285 commit 8ee3571
Showing 1 changed file with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {Row, SelectUserInput} from '../../../UI/Form';
import {EditorFieldNewsCoverageStatus} from '../NewsCoverageStatus';
import * as config from 'appConfig';
import {getLanguagesForTreeSelectInput} from '../../../../selectors/vocabs';
import {SelectUser} from 'superdesk-core/scripts/core/ui/components/SelectUser';

const appConfig = config.appConfig as IPlanningConfig;

Expand Down Expand Up @@ -172,13 +173,16 @@ export class EmbeddedCoverageFormComponent extends React.PureComponent<IProps> {
testId="user"
noPadding={true}
>
<SelectUserInput
field="user"
placeholder={gettext('Search users')}
value={coverage.user}
onChange={this.onUserChange}
users={coverage.filteredUsers}
/>
<Row style={{padding: '2rem 0'}}>
<SelectUser
onSelect={(user) => {
this.onUserChange(null, user);
}}
autoFocus={false}
horizontalSpacing={true}
clearable={true}
/>
</Row>
</Row>
</List.Row>
<List.Row>
Expand Down

0 comments on commit 8ee3571

Please sign in to comment.