-
-
-
By default Cloudron does not overwrite DNS records which exist outside of Cloudron.
-
The following domains already exist outside of Cloudron:
-
- - {{ domain.subdomain + '.' + domain.domain }}
-
-
-
+
+
+
+
+
+
+
+
TBD info about error and potential solution
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -660,6 +691,7 @@
If the app is not responding, try restarting the app.
+
diff --git a/src/views/app.js b/src/views/app.js
index 87f10449d..12ca1fe1f 100644
--- a/src/views/app.js
+++ b/src/views/app.js
@@ -745,6 +745,49 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
}
}
+ $scope.repair = {
+ busy: false,
+ error: {},
+
+ optionalDomains: [],
+ backups: [],
+
+ backupId: '',
+
+ show: function () {
+ $scope.repair.error = {};
+ $scope.repair.busy = false;
+
+ $scope.repair.optionalDomains = $scope.app.alternateDomains;
+ $scope.repair.optionalDomains.forEach(function (d) {
+ d.enabled = true;
+ });
+
+ Client.getAppBackups($scope.app.id, function (error, backups) {
+ if (error) return Client.error(error);
+
+ $scope.repair.backups = backups;
+ $scope.repair.backupId = '';
+
+ $('#repairModal').modal('show');
+ });
+ },
+
+ submit: function () {
+ $scope.repair.error = {};
+ $scope.repair.busy = true;
+
+ // TODO pass disabled domain info or backupId
+
+ Client.repairApp($scope.app.id, {}, function (error) {
+ if (error) return Client.error(error);
+
+ $scope.repair.busy = false;
+ $('#repairModal').modal('hide');
+ });
+ }
+ }
+
$scope.postInstallConfirm = {
message: '',
confirmed: false,