Skip to content

Commit a817363

Browse files
committed
Add root as default tab
1 parent cd532cc commit a817363

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

client/views/layouts/body.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ define([
44
"hr/hr",
55
"core/box",
66
"core/commands",
7+
"core/files",
78
"views/components/tabs"
8-
], function(_, $, hr, box, commands, TabsView) {
9+
], function(_, $, hr, box, commands, files, TabsView) {
910

1011
var BodyView = hr.View.extend({
1112
className: "layout-body",
@@ -18,6 +19,9 @@ define([
1819
var that = this;
1920

2021
this.tabs = new TabsView();
22+
this.tabs.on("tabs:default", function() {
23+
files.open("/");
24+
}, this);
2125

2226
return this;
2327
},

0 commit comments

Comments
 (0)