minor changes to backup manager

This commit is contained in:
usmannasir
2019-03-13 18:22:12 +05:00
parent 29b6d4d3b4
commit e40c7d8912
11 changed files with 133 additions and 40 deletions

View File

@@ -11,13 +11,13 @@ app.controller('createDatabase', function($scope,$http) {
$scope.databaseCreationFailed = true;
$scope.databaseCreated = true;
$scope.couldNotConnect = true;
$scope.generatedPasswordView = true;
$scope.showDetailsBoxes = function(){
$scope.dbDetails = false;
};
$scope.createDatabase = function(){
$scope.createDatabaseLoading = false;
@@ -106,6 +106,15 @@ app.controller('createDatabase', function($scope,$http) {
};
$scope.generatePassword = function () {
$scope.generatedPasswordView = false;
$scope.dbPassword = randomPassword(12);
};
$scope.usePassword = function () {
$scope.generatedPasswordView = true;
};
});
@@ -365,8 +374,6 @@ app.controller('listDBs', function($scope,$http) {
};
function populateCurrentRecords(){
$scope.recordsFetched = true;
$scope.passwordChanged = true;
@@ -442,7 +449,20 @@ app.controller('listDBs', function($scope,$http) {
}
};
}
////
$scope.generatedPasswordView = true;
$scope.generatePassword = function () {
$scope.generatedPasswordView = false;
$scope.dbPassword = randomPassword(12);
};
$scope.usePassword = function () {
$scope.generatedPasswordView = true;
};
});