Merge pull request 'fix(ui): Disable storage card while volume information is being fetched' (#369) from storage-card-lock into master
continuous-integration/drone/push Build is passing Details

Reviewed-on: #369
Reviewed-by: Inex Code <inex.code@selfprivacy.org>
pull/368/head^2
NaiJi ✨ 2023-10-02 20:10:47 +03:00
commit c0624fe5b1
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(