bug fix: git manager

This commit is contained in:
Usman Nasir
2020-03-29 21:20:40 +05:00
parent bf770d2dd9
commit 670b227f32
2 changed files with 71 additions and 7 deletions

View File

@@ -6546,12 +6546,18 @@ app.controller('manageGIT', function ($scope, $http, $timeout, $window) {
var currentComit;
var fetchFileCheck = 0;
var initial = 1;
$scope.fetchFiles = function (commit) {
currentComit = commit;
$scope.cyberpanelLoading = false;
fetchFileCheck = 1;
if (initial === 1){
initial = 0;
}else {
fetchFileCheck = 1;
}
url = "/websites/fetchFiles";
@@ -6607,6 +6613,7 @@ app.controller('manageGIT', function ($scope, $http, $timeout, $window) {
$scope.fetchChangesInFile = function () {
$scope.fileStatus = true;
if(fetchFileCheck === 1){
fetchFileCheck = 0;
return 0;