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

ui.static.acls-js.bulkDeletePrincipalUnwantedRules.js Maven / Gradle / Ivy

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

function bulkDeletePrincipalUnwantedAcls() {
    if (!verifyDeleteConfirm()) {
        return;
    }
    let principal = $(this).attr("data-principal");
    performBulkOperations(
        "Deleting", "unwanted-rules-cluster", "DELETE",
        "api/acls-management/delete-principal-acls",
        "principal", principal,
        "clusterIdentifier", "data-cluster-identifier"
    );
}

function verifyDeleteConfirm() {
    let text = $("#delete-confirm").val();
    if (text !== "DELETE") {
        showOpError("You did not confirm deletion by entering DELETE correctly");
        return false;
    } else {
        return true;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy