fix: hide breadcrumbs for deleted pages and show trash (#6512)

* fix: hide breadcrumbs for deleted pages and show trash

* fix: copy for banner and trash deletion

* test: add base test

* test: expand on test

* test: fix test

* test: fix failing test
This commit is contained in:
Mathias Mogensen 2024-10-10 11:57:42 +02:00 committed by GitHub
parent ea670b6ae6
commit af08b4c004
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 215 additions and 22 deletions

View file

@ -175,6 +175,7 @@ class _DocumentPageState extends State<DocumentPage>
Widget buildBanner(BuildContext context) {
return DocumentBanner(
viewName: widget.view.name,
onRestore: () =>
context.read<DocumentBloc>().add(const DocumentEvent.restorePage()),
onDelete: () => context