Commit 81adf1b4 authored by Servan42's avatar Servan42
Browse files

Fixed 50. Logs are messy.

parent 535f4ca2
......@@ -448,7 +448,8 @@ root.controller('FileOverviewCtrl', ['$scope', '$stateParams','$http','$dropList
$fileFactory.delete_file($scope._getProject(),file.id, function(data){
filesCtrl.confirmDeletion=false;
if(data.status == "success"){
filesCtrl.getFiles(0,filesCtrl.files);
// If there is a bug upon deletion that places you in the wrong folder, that is because filesCtrl.fileToDelete.parentId wasn't updated for some reason, good luck to find why.
filesCtrl.getFiles(filesCtrl.fileToDelete.parentId,filesCtrl.files);
$scope._showAlert({status:1,message:$languageFactory._labels.alerts_deleteFileSuccess});
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment