Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
func: function() {
const Galaxy = getGalaxyInstance();
if (Galaxy && Galaxy.currHistoryPanel && Galaxy.router) {
Galaxy.router.push(`/histories/sharing?id=${Galaxy.currHistoryPanel.model.id}`);
}
}
},
func: function() {
const Galaxy = getGalaxyInstance();
if (
Galaxy &&
Galaxy.currHistoryPanel &&
confirm(
_l(
"This will make all the data in this history private (excluding library datasets), and will set permissions such that all new data is created as private. Any datasets within that are currently shared will need to be re-shared or published. Are you sure you want to do this?"
)
)
) {
$.post(`${Galaxy.root}history/make_private`, { history_id: Galaxy.currHistoryPanel.model.id }, () => {
Galaxy.currHistoryPanel.loadCurrentHistory();
});
}
}
},
export function setWindowTitle(title) {
const Galaxy = getGalaxyInstance();
if (title) {
window.document.title = `Galaxy ${Galaxy.config.brand ? ` | ${Galaxy.config.brand}` : ""} | ${_l(title)}`;
} else {
window.document.title = `Galaxy ${Galaxy.config.brand ? ` | ${Galaxy.config.brand}` : ""}`;
}
}
historyCopyDialog(history, {}).done(() => {
const Galaxy = getGalaxyInstance();
if (Galaxy && Galaxy.currHistoryPanel) {
Galaxy.currHistoryPanel.loadCurrentHistory();
}
window.location.reload(true);
});
});
func: function() {
const Galaxy = getGalaxyInstance();
if (Galaxy && Galaxy.currHistoryPanel && confirm(_l("Really delete the current history?"))) {
Galaxy.currHistoryPanel.model._delete().done(() => {
Galaxy.currHistoryPanel.loadCurrentHistory();
});
}
}
},