Update file size after save in filemanager

This commit is contained in:
Johannes Zellner
2020-12-04 13:53:08 +01:00
parent 58a60d3bd5
commit fa54de2960

View File

@@ -585,6 +585,9 @@ app.controller('FileManagerController', ['$scope', '$translate', '$timeout', 'Cl
Client.filesUpload($scope.id, $scope.type, filePath, file, true, function () {}, function (error) {
if (error) return Client.error(error);
// update size immediately for the list view to avoid reloading the whole list
$scope.textEditor.entry.size = file.size;
$timeout(function () {
$scope.textEditor.unsaved = false;
$scope.textEditor.busy = false;