mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-05-15 06:30:26 +02:00
fix: allow removing expired and errored repositories from dashboard
The Remove action in the dashboard dropdown was gated on status == 'ready', so expired repos showed no way to be removed and stuck on the front page. The backend DELETE route already accepts any non-'removed' status, so widen the ng-show to include 'expired' and 'error'. Fixes #463.
This commit is contained in:
@@ -232,7 +232,7 @@
|
||||
<a class="dropdown-item" href="#" ng-show="item.status == 'removed'" ng-click="refreshItem(item)">
|
||||
<i class="fas fa-check-circle"></i> Enable
|
||||
</a>
|
||||
<a class="dropdown-item" href="#" ng-show="item.status == 'ready'" ng-click="removeItem(item)">
|
||||
<a class="dropdown-item" href="#" ng-show="item.status == 'ready' || item.status == 'expired' || item.status == 'error'" ng-click="removeItem(item)">
|
||||
<i class="fas fa-trash-alt"></i> Remove
|
||||
</a>
|
||||
<a class="dropdown-item" ng-href="{{item._viewUrl}}">
|
||||
|
||||
Reference in New Issue
Block a user