show restore button if we have a lastBackupId

This is the only way to roll back even if you have a functioning app.
Use cases include:
1. You updated and something doesn't work
2. The app is in 'starting...' state (so it's installed) but no data yet
This commit is contained in:
Girish Ramakrishnan
2015-10-14 11:36:10 -07:00
parent 8f1666dcca
commit c154f342c2

View File

@@ -222,7 +222,7 @@
<div class="grid-item-bottom-mobile" ng-show="user.admin">
<div class="row">
<div class="col-xs-4 text-left">
<a href="" ng-click="showRestore(app)" ng-show="(app | installError) === true">
<a href="" ng-click="showRestore(app)" ng-show="app.lastBackupId != null || (app | installError) === true">
<i class="fa fa-undo scale"></i>
</a>
@@ -251,7 +251,7 @@
<a href="" ng-click="showUninstall(app)" title="Uninstall App"><i class="fa fa-remove scale"></i></a>
</div>
<div ng-show="(app | installError) === true">
<div ng-show="app.lastBackupId !== null || (app | installError) === true">
<a href="" ng-click="showRestore(app)" title="Restore App"><i class="fa fa-undo scale"></i></a>
</div>