diff --git a/client/src/components/LibraryFolder/TopToolbar/import-to-history/import-collection.js b/client/src/components/LibraryFolder/TopToolbar/import-to-history/import-collection.js index 9dfb51c27e7..8c037a46ff4 100644 --- a/client/src/components/LibraryFolder/TopToolbar/import-to-history/import-collection.js +++ b/client/src/components/LibraryFolder/TopToolbar/import-to-history/import-collection.js @@ -1,8 +1,10 @@ import { getGalaxyInstance } from "app"; +import { getAppRoot } from "onload/loadConfig"; import { Toast } from "ui/toast"; import mod_library_model from "mvc/library/library-model"; import _ from "underscore"; import Backbone from "backbone"; +import axios from "axios"; import LIST_CREATOR from "mvc/collection/list-collection-creator"; import PAIR_CREATOR from "mvc/collection/pair-collection-creator"; import PAIRED_CREATOR from "mvc/collection/list-of-pairs-collection-creator"; @@ -28,6 +30,9 @@ var ImportCollectionModal = Backbone.View.extend({ this.histories = new mod_library_model.GalaxyHistories(); return this.histories.fetch(); }, + createNewHistory: function (new_history_name) { + return axios.post(`${getAppRoot()}api/histories`, { name: new_history_name }); + }, showCollectionSelect: function (e) { const Galaxy = getGalaxyInstance(); var checked_items = this.findCheckedItems(); diff --git a/client/src/components/Masthead/Masthead.vue b/client/src/components/Masthead/Masthead.vue index eb92c3852e2..d271fb0da16 100644 --- a/client/src/components/Masthead/Masthead.vue +++ b/client/src/components/Masthead/Masthead.vue @@ -1,12 +1,5 @@