mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-09-27 08:24:57 -04:00
Remove a stray Delete link from the garden page
A .dropdown-divider and a dropdown-item Delete link sat in the page body, outside any dropdown, duplicating the Delete in the Actions menu. With the menu open the page has two visible Delete links, and the 'Delete garden' spec, which clicks 'Actions' and then 'Delete', finds both. The Actions menu already has the garden's Delete. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
01767a23fe
commit
22017f1d2c
1 file changed
-4
@@ -63,10 +63,6 @@
|
||||
- if can?(:edit, @garden)
|
||||
.col-md-12
|
||||
= garden_plant_something_button(@garden)
|
||||
|
||||
- if can?(:destroy, @garden)
|
||||
.dropdown-divider
|
||||
= delete_button(@garden, classes: 'dropdown-item text-danger', message: 'gardens.confirm_delete')
|
||||
|
||||
%section
|
||||
%h2 Current activities in garden
|
||||
|
||||
Reference in new issue
Block a user