Skip to main content

Module trash_view

Module trash_view 

Source
Expand description

Trash view controls: restore or permanently delete trashed assets.

The Trash sidebar destination lists trashed assets in the normal grid. This module adds the “Restore All” / “Empty Trash” bar above the grid and swaps the selection bar’s actions for “Restore” / “Delete Permanently” while it’s active.

Structs§

TrashControls 🔒
Trash-only widgets, plus the selection-bar buttons they temporarily replace.

Functions§

build_trash_bar 🔒
Bar above the grid in the Trash: the retention note with Restore All and Empty Trash.
build_trash_controls 🔒
clear_selection 🔒
confirm_delete_permanently 🔒
Ask, then permanently delete ids and drop them from the grid; on_done runs after.
confirm_delete_selected 🔒
confirm_destructive 🔒
Cancel-by-default confirmation whose destructive button runs on_confirm.
confirm_empty_trash 🔒
connect_trash_controls 🔒
is_trash_active 🔒
permanent_delete_text 🔒
Heading and body for the permanent-delete confirmation.
restore 🔒
Restore assets from the trash and drop them from the trash grid; on_done runs after.
restore_all 🔒
restore_selected 🔒
selected_ids 🔒
set_trash_mode 🔒
Show the trash bar and trash selection actions only while the Trash source is active.