Skip to content

Commit

Permalink
Show tabs only for top level file types
Browse files Browse the repository at this point in the history
  • Loading branch information
aviav committed Nov 25, 2016
1 parent 2a583ce commit 5e55f62
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ pageflow.FilesExplorerView = Backbone.Marionette.ItemView.extend({
});

pageflow.editor.fileTypes.each(function(fileType) {
this.tab(fileType);
if (fileType.topLevelType) {
this.tab(fileType);
}
}, this);

this.ui.filesPanel.append(this.subview(this.tabsView).el);
Expand Down
4 changes: 3 additions & 1 deletion app/assets/javascripts/pageflow/editor/views/files_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ pageflow.FilesView = Backbone.Marionette.ItemView.extend({
});

pageflow.editor.fileTypes.each(function(fileType) {
this.tab(fileType);
if (fileType.topLevelType) {
this.tab(fileType);
}
}, this);

this.$el.append(this.subview(this.tabsView).el);
Expand Down

0 comments on commit 5e55f62

Please sign in to comment.