Exclude selected clients from schedule on mobile
This commit is contained in:
parent
c964e30374
commit
92a1cfef2b
|
|
@ -179,7 +179,9 @@ class _EntityDropdownState extends State<EntityDropdown> {
|
|||
builder: (BuildContext context) {
|
||||
return EntityDropdownDialog(
|
||||
entityMap: _entityMap,
|
||||
entityList: widget.entityList ?? _entityMap.keys.toList(),
|
||||
entityList: (widget.entityList ?? _entityMap.keys)
|
||||
.where((elementId) => !widget.excludeIds.contains(elementId))
|
||||
.toList(),
|
||||
onSelected: (entity, [update = true]) {
|
||||
if (entity?.id == widget.entityId) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in New Issue