Skip to content

Commit

Permalink
Merge pull request #3634 from canonical/image-in-vm-table
Browse files Browse the repository at this point in the history
[gui] add image column in vm table
  • Loading branch information
ricab authored Sep 11, 2024
2 parents aa869cc + fc0a8ae commit 80e6bbe
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/client/gui/lib/vm_table/vm_table_headers.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'package:basics/basics.dart';
import 'package:built_collection/built_collection.dart';
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
Expand Down Expand Up @@ -58,6 +59,18 @@ final headers = <TableHeader<VmInfo>>[
total: info.diskTotal,
),
),
TableHeader(
name: 'IMAGE',
width: 140,
minWidth: 70,
cellBuilder: (info) {
final image = info.instanceInfo.currentRelease;
return Text(
image.isNotBlank ? image.nonBreaking : '-',
overflow: TextOverflow.ellipsis,
);
},
),
TableHeader(
name: 'PRIVATE IP',
width: 140,
Expand Down

0 comments on commit 80e6bbe

Please sign in to comment.