Move the buttons to dialog footer

This commit is contained in:
Girish Ramakrishnan
2018-05-28 10:00:12 -07:00
parent 5ce658125c
commit a671e6acf7
2 changed files with 17 additions and 9 deletions

View File

@@ -197,6 +197,8 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
portBindingsInfo: {},
portBindingsEnabled: {},
action: 'restore',
selectBackup: function (backup) {
$scope.appRestore.selectedBackup = backup;
},
@@ -254,6 +256,8 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
$scope.appRestore.portBindingsEnabled[env] = true;
}
$scope.appRestore.action = 'restore';
$('#appRestoreModal').modal('show');
Client.getAppBackups(app.id, function (error, backups) {
@@ -366,6 +370,7 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
$scope.appRestore.portBindings = {};
$scope.appRestore.portBindingsInfo = {};
$scope.appRestore.portBindingsEnabled = {};
$scope.appRestore.action = 'restore';
$scope.appRestoreForm.$setPristine();
$scope.appRestoreForm.$setUntouched();