fix(ui): Disable storage card while volume information is being fetched

- Resolve #317
pull/369/head
NaiJi ✨ 2023-09-30 21:50:38 -03:00
parent 0537ebcfb2
commit 97a9793f9d
1 changed files with 5 additions and 2 deletions

View File

@ -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(