$scope.filterByType = function()

in src/main/resources/static/src/topic.js [155:200]


    $scope.filterByType = function (str, type) {
        if ($scope.filterRetry) {
            if (type.includes("RETRY")) {
                return true
            }
        }
        if ($scope.filterDLQ) {
            if (type.includes("DLQ")) {
                return true
            }
        }
        if ($scope.filterSystem) {
            if (type.includes("SYSTEM")) {
                return true
            }
        }
        if ($scope.isRmqVersionV5() && $scope.filterUnspecified) {
            if (type.includes("UNSPECIFIED")) {
                return true
            }
        }
        if ($scope.filterNormal) {
            if (type.includes("NORMAL")) {
                return true
            }
            if (!$scope.isRmqVersionV5() && type.includes("UNSPECIFIED")) {
                return true
            }
        }
        if ($scope.isRmqVersionV5() && $scope.filterDelay) {
            if (type.includes("DELAY")) {
                return true
            }
        }
        if ($scope.isRmqVersionV5() && $scope.filterFifo) {
            if (type.includes("FIFO")) {
                return true
            }
        }
        if ($scope.isRmqVersionV5() && $scope.filterTransaction) {
            if (type.includes("TRANSACTION")) {
                return true
            }
        }
        return false;
    };