Switch to newly created history

Co-authored-by: Oleg Zharkov <jos.to.new@gmail.com>
This commit is contained in:
Marius van den Beek
2021-03-24 14:54:24 +01:00
committed by GitHub
co-authored by Oleg Zharkov
parent ba6dbe9513
commit 5292bedabd
@@ -36,6 +36,7 @@ var ImportCollectionModal = Backbone.View.extend({
},
async createNewHistory(new_history_name) {
const { data } = await axios.post(`${getAppRoot()}api/histories`, { name: new_history_name });
getGalaxyInstance().currHistoryPanel.switchToHistory(data.id);
return data;
},
showCollectionSelect: function (e) {