fix(ui): fix error text in warning card and update information for device's inter-family owner
This commit is contained in:
@@ -13,10 +13,10 @@ class HomeBloc extends BlocBase {
|
||||
APIServices apiServices = APIServices();
|
||||
|
||||
final allDevicesAliasMap =
|
||||
StreamController<Map<String, List<DeviceWithAlias>>>.broadcast();
|
||||
StreamSink<Map<String, List<DeviceWithAlias>>> get sinkAllDevicesAliasMap =>
|
||||
StreamController<Map<String, List<DeviceWithAlias>>?>.broadcast();
|
||||
StreamSink<Map<String, List<DeviceWithAlias>>?> get sinkAllDevicesAliasMap =>
|
||||
allDevicesAliasMap.sink;
|
||||
Stream<Map<String, List<DeviceWithAlias>>> get streamAllDevicesAliasMap =>
|
||||
Stream<Map<String, List<DeviceWithAlias>>?> get streamAllDevicesAliasMap =>
|
||||
allDevicesAliasMap.stream;
|
||||
|
||||
// final allDevicesAliasJoinedMap =
|
||||
@@ -47,7 +47,6 @@ class HomeBloc extends BlocBase {
|
||||
Stream<List<DeviceWithAlias>?> get streamAliasDevices => aliasDevices.stream;
|
||||
|
||||
void getOwnerAndJoinedDevices(BuildContext context) async {
|
||||
|
||||
await apiServices.execute(context, () async {
|
||||
List<DeviceWithAlias> devices = await apiServices.getDashBoardDevices().handleApiError();
|
||||
List<DeviceWithAlias> publicDevices = [];
|
||||
@@ -56,6 +55,8 @@ class HomeBloc extends BlocBase {
|
||||
publicDevices.add(device);
|
||||
}
|
||||
}
|
||||
// getDeviceStatusAliasMap(publicDevices);
|
||||
sinkAllDevicesAliasMap.add(null);
|
||||
sinkAliasDevices.add(publicDevices);
|
||||
if (!context.mounted) return;
|
||||
getOwnerDeviceState(context, publicDevices);
|
||||
|
||||
Reference in New Issue
Block a user