π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[auth] Clean up trash actions
Neeraj Guptaa97dddf8e528
diff --git a/auth/lib/ui/components/code_selection_actions_widget.dart b/auth/lib/ui/components/code_selection_actions_widget.dartindex 1d730fe63f..9f5de889f9 100644--- a/auth/lib/ui/components/code_selection_actions_widget.dart+++ b/auth/lib/ui/components/code_selection_actions_widget.dart@@ -33,6 +33,7 @@ class CodeSelectionActionsWidget extends StatefulWidget {class _CodeSelectionActionsWidgetStateextends State<CodeSelectionActionsWidget> {late final scrollController = ScrollController();+// static final _logger = Logger("CodeSelectionActionsWidget");@override@@ -45,30 +46,32 @@ class _CodeSelectionActionsWidgetStateWidget build(BuildContext context) {final List<SelectionActionButton> items = [];- items.add(- SelectionActionButton(- labelText: context.l10n.share,- icon: Icons.adaptive.share_outlined,- onTap: widget.onShare,- ),- );- items.add(- SelectionActionButton(- labelText: 'QR',- icon: Icons.qr_code_2_outlined,- onTap: widget.onShowQR,- ),- );+ if (!widget.code.isTrashed) {+ items.add(+ SelectionActionButton(+ labelText: context.l10n.share,+ icon: Icons.adaptive.share_outlined,+ onTap: widget.onShare,+ ),+ );+ items.add(+ SelectionActionButton(+ labelText: 'QR',+ icon: Icons.qr_code_2_outlined,+ onTap: widget.onShowQR,+ ),+ );- items.add(- SelectionActionButton(- labelText: widget.code.isPinned- ? context.l10n.unpinText- : context.l10n.pinText,- icon: widget.code.isPinned ? Icons.push_pin : Icons.push_pin_outlined,- onTap: widget.onPin,- ),- );+ items.add(+ SelectionActionButton(+ labelText: widget.code.isPinned+ ? context.l10n.unpinText+ : context.l10n.pinText,+ icon: widget.code.isPinned ? Icons.push_pin : Icons.push_pin_outlined,+ onTap: widget.onPin,+ ),+ );+ }if (widget.code.isTrashed) {items.add(