How to use the app.getGalaxyInstance function in app

To help you get started, we’ve selected a few app examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github galaxyproject / galaxy / client / galaxy / scripts / mvc / history / options-menu.js View on Github external
func: function() {
            const Galaxy = getGalaxyInstance();
            if (Galaxy && Galaxy.currHistoryPanel && Galaxy.router) {
                Galaxy.router.push(`/histories/sharing?id=${Galaxy.currHistoryPanel.model.id}`);
            }
        }
    },
github galaxyproject / galaxy / client / galaxy / scripts / mvc / history / options-menu.js View on Github external
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();
                });
            }
        }
    },
github galaxyproject / galaxy / client / galaxy / scripts / utils / utils.js View on Github external
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}` : ""}`;
    }
}
github galaxyproject / galaxy / client / galaxy / scripts / mvc / history / history-list.js View on Github external
historyCopyDialog(history, {}).done(() => {
                    const Galaxy = getGalaxyInstance();
                    if (Galaxy && Galaxy.currHistoryPanel) {
                        Galaxy.currHistoryPanel.loadCurrentHistory();
                    }
                    window.location.reload(true);
                });
            });
github galaxyproject / galaxy / client / galaxy / scripts / mvc / history / options-menu.js View on Github external
func: function() {
            const Galaxy = getGalaxyInstance();
            if (Galaxy && Galaxy.currHistoryPanel && confirm(_l("Really delete the current history?"))) {
                Galaxy.currHistoryPanel.model._delete().done(() => {
                    Galaxy.currHistoryPanel.loadCurrentHistory();
                });
            }
        }
    },

app

mirco web app framework

Unknown
Latest version published 13 years ago

Package Health Score

30 / 100
Full package analysis