Display the list of pending devices in the UI
This commit is contained in:
@ -81,7 +81,7 @@ impl DevicesList {
|
||||
let dev = self
|
||||
.0
|
||||
.get(id)
|
||||
.ok_or_else(|| DevicesListError::PersistFailedDeviceNotFound)?;
|
||||
.ok_or(DevicesListError::PersistFailedDeviceNotFound)?;
|
||||
|
||||
std::fs::write(
|
||||
AppConfig::get().device_config_path(id),
|
||||
@ -90,4 +90,9 @@ impl DevicesList {
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/// Get a copy of the full list of devices
|
||||
pub fn full_list(&self) -> Vec<Device> {
|
||||
self.0.clone().into_values().collect()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user