mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-07 00:24:18 +00:00
fix(ui): Disable storage card while volume information is being fetched
- Resolve https://git.selfprivacy.org/SelfPrivacy/selfprivacy.org.app/issues/317
This commit is contained in:
parent
0537ebcfb2
commit
97a9793f9d
|
@ -45,8 +45,11 @@ class StorageCard extends StatelessWidget {
|
|||
clipBehavior: Clip.antiAlias,
|
||||
child: InkResponse(
|
||||
highlightShape: BoxShape.rectangle,
|
||||
onTap: () =>
|
||||
context.pushRoute(ServerStorageRoute(diskStatus: diskStatus)),
|
||||
|
||||
/// TODO: when 'isEmpty' replace with a skeleton
|
||||
onTap: () => diskStatus.diskVolumes.isEmpty
|
||||
? null
|
||||
: context.pushRoute(ServerStorageRoute(diskStatus: diskStatus)),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(16.0),
|
||||
child: Column(
|
||||
|
|
Loading…
Reference in a new issue