From 119e8e0736672db9381a2b309fe91fcbfad77fb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20B=C3=B6sche?= Date: Sat, 24 Jan 2026 23:54:07 +0100 Subject: [PATCH] Remove unused _revokeShareLink method and update share link message for clarity --- .../lib/widgets/share_file_dialog.dart | 27 +------------------ 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/b0esche_cloud/lib/widgets/share_file_dialog.dart b/b0esche_cloud/lib/widgets/share_file_dialog.dart index a82fbb0..5712ff6 100644 --- a/b0esche_cloud/lib/widgets/share_file_dialog.dart +++ b/b0esche_cloud/lib/widgets/share_file_dialog.dart @@ -109,31 +109,6 @@ class _ShareFileDialogState extends State { } } - Future _revokeShareLink() async { - setState(() { - _isLoading = true; - _error = null; - }); - - try { - final apiClient = getIt(); - final path = widget.orgId.isEmpty - ? '/orgs/files/${widget.fileId}/share' - : '/orgs/${widget.orgId}/files/${widget.fileId}/share'; - await apiClient.delete(path); - - setState(() { - _shareUrl = null; - _isLoading = false; - }); - } catch (e) { - setState(() { - _error = 'Failed to revoke share link'; - _isLoading = false; - }); - } - } - void _copyToClipboard() { if (_shareUrl != null) { Clipboard.setData(ClipboardData(text: _shareUrl!)); @@ -215,7 +190,7 @@ class _ShareFileDialogState extends State { children: [ if (_shareUrl != null) ...[ Text( - 'Share link created. Anyone with this link can view and download the file.', + 'Anyone with this link can view and download the file.', style: TextStyle(color: AppTheme.secondaryText), ), const SizedBox(height: 16),