fix: docker (#162 #167)

This commit is contained in:
lollipopkit
2023-11-20 00:28:17 -06:00
parent 4153713ce7
commit f093853d21
6 changed files with 73 additions and 61 deletions

View File

@@ -355,7 +355,7 @@ class _DockerManagePageState extends State<DockerManagePage> {
Widget _buildMoreBtn(DockerPsItem dItem) {
return PopupMenu(
items: DockerMenuType.items(dItem.running).map((e) => e.widget).toList(),
onSelected: (DockerMenuType item) async {
onSelected: (item) async {
switch (item) {
case DockerMenuType.rm:
context.showRoundDialog(
@@ -464,7 +464,7 @@ class _DockerManagePageState extends State<DockerManagePage> {
await context.showRoundDialog(
title: Text(l10n.dockerEditHost),
child: Input(
maxLines: 1,
maxLines: 2,
controller: ctrl,
onSubmitted: _onSaveDockerHost,
),

View File

@@ -126,17 +126,18 @@ class _ServerEditPageState extends State<ServerEditPage> {
'${l10n.delete} ${l10n.server}(${widget.spi!.name})',
)),
UIs.height13,
if (widget.spi?.server?.canViewDetails ?? false) Row(
children: [
Checkbox(
value: delScripts,
onChanged: (_) => setState(
() => delScripts = !delScripts,
if (widget.spi?.server?.canViewDetails ?? false)
Row(
children: [
Checkbox(
value: delScripts,
onChanged: (_) => setState(
() => delScripts = !delScripts,
),
),
),
Text(l10n.deleteScripts),
],
)
Text(l10n.deleteScripts),
],
)
],
);
}),