Commit e155f60
Big trash refactor (#16600)
### What does it do?
1. Adds new "Trash" menu item to the top menu
2. Fixes #14190
3. Fixes trash button icon color change when its inactive
4. Removes unnecessary styles
5. Adds a purge button to the edit resource page
6. The resource tree and trash button state are now updates when a
resource is deleted/undeleted on the resource update page
7. Fixes trash button tooltip information when purging resources on the
trash page
8. Now when a resource have been delete/undelete in the resource tree,
the state of the resource update form (checkbox and buttons) updates
9. Fixes undefined text of the trash button tooltip
10. Adds purge resource menu item to the context menu in the resource
tree
### Why is it needed?
There are many errors when deleting/restoring/purging resources
### How to test
1. —
2. Click by the middle mouse button on the trash button on the toolbar
3. Hover over the trash button when its inactive, before the icon
changed color, now when inactive it does not
4. —
5. Open the edit resource page, delete it and you will see a new purging
button
6. If you delete or restore a resource on the edit page, the resource
tree and the trash button in the toolbar remain unchanged. Now the
resource tree and the trash button will change their state
7. On the trash page when purging resources, the state of the trash
button in the toolbar was not updated, now it will be
8. Create a resource, open its edit page and delete the resource **in
the resource tree**, the state of the checkbox and buttons in the edit
form will not change. Now everything works as it should.
9. If you delete a resource and when you hover the trash button, it will
be undefined in the tooltip. Now the information will be correct
10. Open the context menu of resource tree, delete the resource and open
again
### Related issue(s)/PR(s)
#14190
---------
Co-authored-by: Jan Peca <[email protected]>
Co-authored-by: Jason Coward <[email protected]>1 parent c1f2213 commit e155f60
File tree
26 files changed
+294
-157
lines changed- _build
- data
- templates/default/sass
- core
- lexicon/en
- src/Revolution
- Processors/Resource
- Trash
- manager
- assets/modext
- core
- sections/resource
- widgets/resource
- controllers/default/resource
- staticresource
- symlink
- weblink
- templates/default/css
- setup/includes/upgrades
- common
- mysql
26 files changed
+294
-157
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
83 | 90 | | |
84 | 91 | | |
85 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
672 | 672 | | |
673 | 673 | | |
674 | 674 | | |
675 | | - | |
676 | | - | |
677 | | - | |
678 | | - | |
679 | | - | |
680 | | - | |
681 | 675 | | |
682 | 676 | | |
683 | 677 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
989 | 989 | | |
990 | 990 | | |
991 | 991 | | |
992 | | - | |
993 | | - | |
994 | | - | |
995 | 992 | | |
996 | 993 | | |
997 | 994 | | |
998 | 995 | | |
999 | 996 | | |
1000 | 997 | | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
1001 | 1002 | | |
1002 | 1003 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
663 | 663 | | |
664 | 664 | | |
665 | 665 | | |
666 | | - | |
| 666 | + | |
667 | 667 | | |
668 | 668 | | |
669 | 669 | | |
| |||
1685 | 1685 | | |
1686 | 1686 | | |
1687 | 1687 | | |
| 1688 | + | |
| 1689 | + | |
| 1690 | + | |
| 1691 | + | |
| 1692 | + | |
| 1693 | + | |
| 1694 | + | |
| 1695 | + | |
| 1696 | + | |
1688 | 1697 | | |
1689 | 1698 | | |
1690 | 1699 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
| 123 | + | |
122 | 124 | | |
123 | 125 | | |
124 | 126 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| 112 | + | |
112 | 113 | | |
113 | 114 | | |
114 | 115 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
95 | 94 | | |
96 | 95 | | |
97 | 96 | | |
98 | | - | |
99 | | - | |
| 97 | + | |
100 | 98 | | |
101 | 99 | | |
102 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| 201 | + | |
| 202 | + | |
201 | 203 | | |
202 | 204 | | |
203 | | - | |
| 205 | + | |
| 206 | + | |
204 | 207 | | |
205 | 208 | | |
206 | 209 | | |
0 commit comments