Skip to content

Commit

Permalink
Merge pull request #99 from anerib/@anerixor/FIX-XOR-155
Browse files Browse the repository at this point in the history
XOR-155 [FIX]  Ensure the progress bar for storage refreshed after deleteing the file/folder
  • Loading branch information
squallstar authored Jun 6, 2022
2 parents 1a75465 + fedbd7b commit 506baaa
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions js/interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,8 @@ function removeTrashItems(items) {
}

return updateAppMetrics(itemAppId);
}).then(function() {
toggleStorageUsage();
}).catch(function(error) {
showSpinner(false);
Fliplet.Modal.alert({
Expand Down Expand Up @@ -2089,6 +2091,10 @@ $('.file-manager-wrapper')
$('.empty-state').addClass('active');
}
});

return updateAppMetrics(currentAppId);
}).then(function() {
toggleStorageUsage();
}).catch(function(err) {
showSpinner(false);

Expand All @@ -2097,6 +2103,10 @@ $('.file-manager-wrapper')
});
});
}

return updateAppMetrics(currentAppId);
}).then(function() {
toggleStorageUsage();
});
})
.on('click', '[download-action]', function() {
Expand Down

0 comments on commit 506baaa

Please sign in to comment.