$scope.openConsumerResetOffsetDialog = function()

in src/main/resources/static/src/topic.js [312:340]


    $scope.openConsumerResetOffsetDialog = function (topic) {

        $http({
            method: "GET",
            url: "topic/queryTopicConsumerInfo.query",
            params: {
                topic: topic
            }
        }).success(function (resp) {
            if (resp.status == 0) {
                if (resp.data.groupList == null) {
                    Notification.error({message: "don't have consume group!", delay: 2000});
                    return
                }
                ngDialog.open({
                    template: 'consumerResetOffsetDialog',
                    controller: 'consumerResetOffsetDialogController',
                    data: {
                        topic: topic,
                        selectedConsumerGroup: [],
                        allConsumerGroupList: resp.data.groupList
                    }
                });
            } else {
                Notification.error({message: resp.errMsg, delay: 2000});
            }
        });

    };