| @@ -139,8 +139,22 @@ | ||
| 139 | 139 | 'filter' => '', |
| 140 | 140 | 'search' => '', |
| 141 | 141 | ) |
| 142 | 142 | ) |
| 143 | + // Returning to the bin must re-query even if a change notification | |
| 144 | + // was missed while it was hidden or another admin tab was active. | |
| 145 | + ->action( | |
| 146 | + 'show', | |
| 147 | + static function () { | |
| 148 | + // The dispatch recomputes data below. | |
| 149 | + } | |
| 150 | + ) | |
| 151 | + ->action( | |
| 152 | + 'reopen', | |
| 153 | + static function () { | |
| 154 | + // The dispatch recomputes data below. | |
| 155 | + } | |
| 156 | + ) | |
| 143 | 157 | ->action( |
| 144 | 158 | 'restore', |
| 145 | 159 | static function ( State $state, Os $os, array $args ) { |
| 146 | 160 | run_bulk( $os, refs( $args ), 'openstation_recycle_bin_restore', 'untrashed' ); |