#40 new: docker container restart

This commit is contained in:
lollipopkit
2023-05-16 16:45:46 +08:00
parent 2161596efc
commit 82ed2e70dc
4 changed files with 17 additions and 15 deletions

View File

@@ -447,8 +447,11 @@ class _DockerManagePageState extends State<DockerManagePage> {
(item) {
return ListTile(
title: Text(item.name),
subtitle: Text('${item.image} - ${item.status}',
style: grey.copyWith(fontSize: 11)),
isThreeLine: true,
subtitle: Text(
'${item.image}\n${item.status}',
style: textSize13Grey,
),
trailing: _buildMoreBtn(item, _docker.isBusy),
);
},
@@ -477,6 +480,10 @@ class _DockerManagePageState extends State<DockerManagePage> {
value: DockerMenuItems.rm,
child: DockerMenuItems.rm.build(_s),
),
PopupMenuItem<DropdownBtnItem>(
value: DockerMenuItems.restart,
child: DockerMenuItems.restart.build(_s),
),
],
onSelected: (value) {
if (busy) {