dns replication

This commit is contained in:
usmannasir
2019-02-04 01:03:18 +05:00
parent 095fa6743b
commit 75c9ef9da9
51 changed files with 1230 additions and 634 deletions

View File

@@ -247,10 +247,8 @@ app.controller('listWebsites', function ($scope, $http) {
}
function cantLoadInitialData(response) {
console.log("not good");
}
$scope.getFurtherWebsitesFromDB = function (pageNumber) {
var config = {
@@ -287,6 +285,58 @@ app.controller('listWebsites', function ($scope, $http) {
}
};
$scope.cyberPanelLoading = true;
$scope.issueSSL = function (virtualHost) {
$scope.cyberPanelLoading = false;
var url = "/manageSSL/issueSSL";
var data = {
virtualHost: virtualHost
};
var config = {
headers: {
'X-CSRFToken': getCookie('csrftoken')
}
};
$http.post(url, data, config).then(ListInitialDatas, cantLoadInitialDatas);
function ListInitialDatas(response) {
$scope.cyberPanelLoading = true;
if (response.data.SSL === 1) {
new PNotify({
title: 'Success!',
text: 'SSL successfully issued.',
type: 'success'
});
}
else {
new PNotify({
title: 'Operation Failed!',
text: response.data.error_message,
type: 'error'
});
}
}
function cantLoadInitialDatas(response) {
$scope.cyberPanelLoading = true;
new PNotify({
title: 'Operation Failed!',
text: 'Could not connect to server, please refresh this page',
type: 'error'
});
}
};
});