show apps with automatic backups disabled

This commit is contained in:
Girish Ramakrishnan
2020-04-03 10:36:51 -07:00
parent cd2a94ddb8
commit 305f9fd1cf
2 changed files with 12 additions and 1 deletions
+8 -1
View File
@@ -174,7 +174,14 @@
</div>
<div class="card" style="margin-bottom: 15px;">
<p>Cloudron makes a complete backup of your system based on this configuration.</p>
<p>Cloudron makes a complete backup of your system based on this configuration.
<span ng-show="manualBackupApps.length">
The following apps have automatic backups disabled:
<span ng-repeat="app in manualBackupApps">
<a ng-href="/#/app/{{app.id}}/backups">{{app.label || app.fqdn}}</a><span ng-hide="$last">,</span>
</span>
</span>
</p>
<div class="row">
<div class="col-xs-6">
+4
View File
@@ -9,6 +9,8 @@ angular.module('Application').controller('BackupsController', ['$scope', '$locat
$scope.config = Client.getConfig();
$scope.user = Client.getUserInfo();
$scope.manualBackupApps = [];
$scope.backupConfig = {};
$scope.lastBackup = null;
$scope.backups = [];
@@ -419,6 +421,8 @@ angular.module('Application').controller('BackupsController', ['$scope', '$locat
fetchBackups();
getBackupConfig();
$scope.manualBackupApps = Client.getInstalledApps().filter(function (app) { return !app.enableBackup; });
// show backup status
$scope.createBackup.checkStatus();
});