All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ui.static.cluster.removeClusterFromRegistry.js Maven / Gradle / Ivy

There is a newer version: 0.8.0
Show newest version
$(document).ready(function () {
    $("#delete-btn").click(removeClusterFromRegistry);
});

function removeClusterFromRegistry() {
    let button = $(this);
    let clusterIdentifier = button.attr("data-cluster-identifier");
    showOpProgress("Removing cluster...");
    $
        .ajax("api/clusters?clusterIdentifier=" + encodeURI(clusterIdentifier) + "&message=removing", {
            method: "DELETE"
        })
        .done(function () {
            showOpSuccess("Cluster is successfully removed from registry");
        })
        .fail(function (error) {
            let errorMsg = extractErrMsg(error);
            showOpError("Removal failed: " + errorMsg)
        });
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy