Delete all documents in current directory

Adds a new button to the top right for deleting all documents in a
directory.
This commit is contained in:
2018-01-03 13:34:04 +00:00
parent f9b4444763
commit 9f5d8bfb93
4 changed files with 148 additions and 7 deletions

View File

@@ -44,6 +44,12 @@ export default Route.extend({
if (isPresent(model)) {
controller.set('currentDirPath', model.currentDirPath);
if (isEmpty(model.currentListing)) {
this.transitionTo('index', {
queryParams: { path: controller.get('parentDir') }
});
}
}
},