From c52c9196070a9f96cf0eb8646cb7b6da68a07c01 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Sat, 22 Mar 2025 07:38:16 -0500 Subject: [PATCH] remove advanced from add --- .../lib/screens/add_mount_screen.dart | 33 +++++-------------- 1 file changed, 8 insertions(+), 25 deletions(-) diff --git a/web/repertory/lib/screens/add_mount_screen.dart b/web/repertory/lib/screens/add_mount_screen.dart index d4f6373e..99683bda 100644 --- a/web/repertory/lib/screens/add_mount_screen.dart +++ b/web/repertory/lib/screens/add_mount_screen.dart @@ -28,7 +28,6 @@ class _AddMountScreenState extends State { "S3": createDefaultSettings("S3"), "Sia": createDefaultSettings("Sia"), }; - bool _showAdvanced = false; @override Widget build(BuildContext context) { @@ -37,29 +36,13 @@ class _AddMountScreenState extends State { backgroundColor: Theme.of(context).colorScheme.inversePrimary, title: Text(widget.title), actions: [ - Row( - children: [ - Row( - children: [ - const Text("Advanced"), - IconButton( - icon: Icon( - _showAdvanced ? Icons.toggle_on : Icons.toggle_off, - ), - onPressed: - () => setState(() => _showAdvanced = !_showAdvanced), - ), - ], - ), - Consumer( - builder: (context, auth, _) { - return IconButton( - icon: const Icon(Icons.logout), - onPressed: () => auth.logoff(), - ); - }, - ), - ], + Consumer( + builder: (context, auth, _) { + return IconButton( + icon: const Icon(Icons.logout), + onPressed: () => auth.logoff(), + ); + }, ), ], ), @@ -141,7 +124,7 @@ class _AddMountScreenState extends State { isAdd: true, mount: _mount!, settings: _settings[_mountType]!, - showAdvanced: _showAdvanced, + showAdvanced: false, ), ), ),