bug fix: git manager

This commit is contained in:
Usman Nasir
2020-03-15 15:26:24 +05:00
parent 1e33cd2825
commit dbb29b11b7
4 changed files with 102 additions and 48 deletions

View File

@@ -5974,8 +5974,15 @@ app.controller('manageGIT', function ($scope, $http, $timeout, $window) {
};
var changeBranch = 0;
$scope.changeBranch = function () {
if(changeBranch === 1){
changeBranch = 0;
return 0;
}
$scope.loadingSticks = false;
$("#showStatus").modal();
@@ -6038,6 +6045,7 @@ app.controller('manageGIT', function ($scope, $http, $timeout, $window) {
$scope.cyberpanelLoading = false;
$scope.commandStatus = "";
$scope.statusBox = false;
changeBranch = 1;
url = "/websites/createNewBranch";
@@ -6531,11 +6539,13 @@ app.controller('manageGIT', function ($scope, $http, $timeout, $window) {
};
var currentComit;
var fetchFileCheck = 0;
$scope.fetchFiles = function (commit) {
currentComit = commit;
$scope.cyberpanelLoading = false;
fetchFileCheck = 1;
url = "/websites/fetchFiles";
@@ -6590,13 +6600,17 @@ app.controller('manageGIT', function ($scope, $http, $timeout, $window) {
$scope.fileStatus = true;
$scope.fetchChangesInFile = function () {
$scope.fileStatus = true;
if(fetchFileCheck === 1){
fetchFileCheck = 0;
return 0;
}
$scope.cyberpanelLoading = false;
$scope.currentSelectedFile = $scope.changeFile;
url = "/websites/fetchChangesInFile";
var data = {
domain: $("#domain").text(),
folder: $scope.folder,
@@ -6623,14 +6637,13 @@ app.controller('manageGIT', function ($scope, $http, $timeout, $window) {
$scope.fileStatus = false;
document.getElementById("fileChangedContent").innerHTML = response.data.fileChangedContent;
} else {
$scope.fileStatus = true;
new PNotify({
title: 'Operation Failed!',
text: response.data.error_message,
type: 'error'
});
}
}
function cantLoadInitialDatas(response) {