Skip to content

Commit

Permalink
[gui] add image column in vm table
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-toterman committed Aug 13, 2024
1 parent 52a9111 commit fc0a8ae
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 fc0a8ae

Please sign in to comment.