Merge branch 'master' into digital-ocean-volume

pull/368/head
NaiJi ✨ 2023-10-02 20:10:54 +03:00
commit 6096ef2572
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(