diff --git a/app/controllers/inspect.js b/app/controllers/inspect.js
index 50ef1d0..829ab66 100644
--- a/app/controllers/inspect.js
+++ b/app/controllers/inspect.js
@@ -12,4 +12,21 @@ export default Controller.extend({
queryParams: ['path'],
+ actions: {
+
+ deleteItem () {
+ if (window.confirm('Sure?')) {
+ this.get('storage.client')
+ .remove(this.get('path')).then(() => {
+ this.transitionToRoute('index', {
+ queryParams: {
+ path: this.get('currentDirPath')
+ }
+ });
+ });
+ }
+ }
+
+ }
+
});
diff --git a/app/styles/_layout.scss b/app/styles/_layout.scss
index ba9dc3f..6e6b24d 100644
--- a/app/styles/_layout.scss
+++ b/app/styles/_layout.scss
@@ -68,6 +68,17 @@
> header {
height: 4rem;
+ display: flex;
+ flex-direction: row;
+
+ nav.breadcrumb-nav {
+ flex: 1;
+ }
+
+ nav.actions {
+ flex: 1;
+ text-align: right;
+ }
}
}
}
diff --git a/app/templates/inspect.hbs b/app/templates/inspect.hbs
index db3f73e..a4ddd1e 100644
--- a/app/templates/inspect.hbs
+++ b/app/templates/inspect.hbs
@@ -1,5 +1,8 @@