admin: Improve file readability
This commit is contained in:
parent
a0cd651dae
commit
d323bf9ee9
3 changed files with 26 additions and 3 deletions
|
|
@ -1352,7 +1352,7 @@ angular.module("FICApp")
|
|||
$scope.files = File.query();
|
||||
$scope.errfnd = null;
|
||||
$scope.errzip = null;
|
||||
$scope.fields = ["id", "path", "name", "checksum", "size"];
|
||||
$scope.fields = ["id", "path", "name", "size"];
|
||||
|
||||
$scope.clearFiles = function(id) {
|
||||
File.delete(function() {
|
||||
|
|
@ -1376,12 +1376,15 @@ angular.module("FICApp")
|
|||
})
|
||||
};
|
||||
$scope.checksum = function(f) {
|
||||
f.checkWIP = true;
|
||||
$http({
|
||||
url: "api/files/" + f.id + "/check",
|
||||
method: "POST"
|
||||
}).then(function(response) {
|
||||
f.checkWIP = false;
|
||||
f.err = true;
|
||||
}, function(response) {
|
||||
f.checkWIP = false;
|
||||
$scope.inSync = false;
|
||||
$scope.errfnd += 1;
|
||||
f.err = response.data.errmsg;
|
||||
|
|
|
|||
Reference in a new issue