]> BookStack Code Mirror - bookstack/commit
Review of #2682, Also added parent deletion link on restore
authorDan Brown <redacted>
Sat, 26 Jun 2021 11:12:11 +0000 (12:12 +0100)
committerDan Brown <redacted>
Sat, 26 Jun 2021 11:12:11 +0000 (12:12 +0100)
commit3a402f6adc78fa939d898369e425088fed141544
tree8c6da67a7650393dc96db2a99d79a0f5cd2a25ad
parent8a9505bf8cf0b6d7c7ac0fa5c72b5ac25e4f7b92
Review of #2682, Also added parent deletion link on restore

On restore, added a link to the parent deletion restore if any exists
on a cascading parent. Added a test to cover this case to ensure its shown.

Also tweaked default empty state message on recycle bin item list to align
with new column count.

Also done a little existing code cleanup including a getUrl helper on
the deletion items.

Related to #2682 & #2594
app/Entities/Models/Deletion.php
app/Entities/Models/Entity.php
app/Http/Controllers/RecycleBinController.php
resources/lang/en/settings.php
resources/views/settings/recycle-bin/index.blade.php
resources/views/settings/recycle-bin/restore.blade.php
tests/RecycleBinTest.php