Skip to content

Commit

Permalink
Merge pull request #5797 from nsoranzo/release_18.01_fix_import_direc…
Browse files Browse the repository at this point in the history
…tory

[18.01] Fix missing `from Import Directory` button
  • Loading branch information
jmchilton committed Apr 6, 2018
2 parents 0099213 + 1d0c734 commit 68b87a0
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
Expand Up @@ -78,7 +78,7 @@ var FolderToolbarView = Backbone.View.extend({
id: this.options.id,
is_admin: false,
is_anonym: true,
mutiple_add_dataset_options: false
multiple_add_dataset_options: false
};
if (Galaxy.user) {
template_defaults.is_admin = Galaxy.user.isAdmin();
Expand All @@ -88,7 +88,7 @@ var FolderToolbarView = Backbone.View.extend({
Galaxy.config.allow_library_path_paste !== false ||
Galaxy.config.library_import_dir !== null
) {
template_defaults.mutiple_add_dataset_options = true;
template_defaults.multiple_add_dataset_options = true;
}
}
this.$el.html(toolbar_template(template_defaults));
Expand Down Expand Up @@ -1390,7 +1390,7 @@ var FolderToolbarView = Backbone.View.extend({
'<span class="fa fa-plus"></span><span class="fa fa-folder"></span> Create Folder ',
"</button>",
// add datasets button
"<% if(mutiple_add_dataset_options) { %>",
"<% if(multiple_add_dataset_options) { %>",
'<div class="btn-group add-library-items add-library-items-datasets toolbar-item" style="display:none;">',
'<button title="Add Datasets to Current Folder" id="" type="button" class="primary-button dropdown-toggle" data-toggle="dropdown">',
'<span class="fa fa-plus"></span><span class="fa fa-file"></span> Add Datasets <span class="caret"></span>',
Expand All @@ -1400,7 +1400,7 @@ var FolderToolbarView = Backbone.View.extend({
"<% if(Galaxy.config.user_library_import_dir !== null) { %>",
'<li><a href="#folders/<%= id %>/import/userdir"> from User Directory</a></li>',
"<% } %>",
"<% if(Galaxy.config.allow_library_path_paste) { %>",
"<% if(Galaxy.config.library_import_dir !== null || Galaxy.config.allow_library_path_paste) { %>",
'<li class="divider"></li>',
'<li class="dropdown-header">Admins only</li>',
"<% if(Galaxy.config.library_import_dir !== null) { %>",
Expand Down
2 changes: 1 addition & 1 deletion static/maps/mvc/library/library-foldertoolbar-view.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/scripts/bundled/extended.bundled.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/scripts/bundled/extended.bundled.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/scripts/bundled/libs.bundled.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/scripts/mvc/library/library-foldertoolbar-view.js

Large diffs are not rendered by default.

0 comments on commit 68b87a0

Please sign in to comment.