opt.: cancel sftp mission

This commit is contained in:
lollipopkit
2023-07-29 18:24:22 +08:00
parent e13c5910ec
commit 0f83d10bfa
12 changed files with 277 additions and 230 deletions

View File

@@ -291,9 +291,8 @@ class _ServerEditPageState extends State<ServerEditPage> with AfterLayoutMixin {
pwd: authorization,
pubKeyId: usePublicKey ? _keyInfo!.id : null,
tags: _tags,
alterUrl: _alterUrlController.text == ''
? null
: _alterUrlController.text,
alterUrl:
_alterUrlController.text == '' ? null : _alterUrlController.text,
);
if (widget.spi == null) {

View File

@@ -29,7 +29,7 @@ import '../../widget/popup_menu.dart';
import '../../widget/round_rect_card.dart';
import '../docker.dart';
import '../pkg.dart';
import '../sftp/remote.dart';
import '../storage/sftp.dart';
import '../ssh/term.dart';
import 'detail.dart';
import 'edit.dart';
@@ -286,7 +286,7 @@ class _ServerPageState extends State<ServerPage>
AppRoute(PkgManagePage(spi), 'pkg manage').go(context);
break;
case ServerTabMenuType.sftp:
AppRoute(SFTPPage(spi), 'SFTP').go(context);
AppRoute(SftpPage(spi), 'SFTP').go(context);
break;
case ServerTabMenuType.snippet:
final provider = locator<SnippetProvider>();