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

ui.static.topic.management.missingTopicCreation.js Maven / Gradle / Ivy

The newest version!
$(document).ready(function () {
    $("#create-missing-btn").click(createMissingTopic);
});

function createMissingTopic() {
    let button = $(this);
    let topicName = button.attr("data-topic-name");
    let clusterIdentifier = button.attr("data-cluster-identifier");
    showOpProgress("Creating missing topic...");
    $
        .ajax("api/management/create-missing-topic", {
            method: "POST",
            data: {
                topicName: topicName,
                clusterIdentifier: clusterIdentifier
            }
        })
        .done(function () {
            showOpSuccess("Creation completed with success");
        })
        .fail(function (error) {
            let errorMsg = extractErrMsg(error);
            showOpError("Creation failed: " + errorMsg);
        });
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy