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:
@@ -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') }
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user