Unset companies and owners (#1185)
* unselect users and companies * Icon now works with theme --------- Co-authored-by: vboxuser <vboxuser@Ubu.myguest.virtualbox.org> Co-authored-by: Charles Bochet <charlesBochet@users.noreply.github.com>
This commit is contained in:
@ -77,7 +77,13 @@ export function CompanyPickerCell({
|
||||
});
|
||||
setIsCreating(false);
|
||||
}
|
||||
|
||||
const noUser: EntityForSelect = {
|
||||
entityType: Entity.Company,
|
||||
id: '',
|
||||
name: 'No Company',
|
||||
avatarType: 'rounded',
|
||||
avatarUrl: '',
|
||||
};
|
||||
return isCreating ? (
|
||||
<DoubleTextCellEdit
|
||||
firstValue={searchFilter}
|
||||
@ -97,6 +103,7 @@ export function CompanyPickerCell({
|
||||
selectedEntity: companies.selectedEntities[0],
|
||||
loading: companies.loading,
|
||||
}}
|
||||
noUser={noUser}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user