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

Merged
NaiJi merged 1 commits from storage-card-lock into master 2023-10-02 20:10:48 +03:00
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

As soon as volumes appear, our taps get to go through and we access the page

As soon as volumes appear, our taps get to go through and we access the page
? null
: context.pushRoute(ServerStorageRoute(diskStatus: diskStatus)),
child: Padding(
padding: const EdgeInsets.all(16.0),
child: Column(