mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Removed telemetry
This commit is contained in:
parent
2e005803e3
commit
8dad513a4e
12 changed files with 1 additions and 125 deletions
|
|
@ -9,7 +9,6 @@ local check_utils = require("checks")
|
|||
local endpoint_configs = require("endpoints")
|
||||
local recipients_manager = require("recipients")
|
||||
local page_utils = require('page_utils')
|
||||
local telemetry_utils = require("telemetry_utils")
|
||||
local toast_ui = require("toast_ui")
|
||||
local stats_utils = require("stats_utils")
|
||||
local delete_data_utils = require("delete_data_utils")
|
||||
|
|
@ -95,23 +94,6 @@ local function create_geo_ip_toast_ui(toast)
|
|||
return toast_ui:new(toast.id, title, description, ToastLevel.WARNING, nil, toast.dismissable)
|
||||
end
|
||||
|
||||
-- ###############################################################
|
||||
|
||||
local function create_contribute_toast_ui(toast)
|
||||
local title = i18n("about.contribute_to_project")
|
||||
local description = i18n("about.telemetry_data_opt_out_msg", {
|
||||
tel_url = ntop.getHttpPrefix() .. "/lua/telemetry.lua",
|
||||
ntop_org = "https://www.ntop.org/"
|
||||
})
|
||||
|
||||
local action = {
|
||||
url = ntop.getHttpPrefix() .. '/lua/admin/prefs.lua?tab=telemetry',
|
||||
title = i18n("configure")
|
||||
}
|
||||
|
||||
return toast_ui:new(toast.id, title, description, ToastLevel.INFO, action, toast.dismissable)
|
||||
end
|
||||
|
||||
|
||||
-- ###############################################################
|
||||
|
||||
|
|
@ -330,17 +312,6 @@ function predicates.temp_working_dir(toast, container)
|
|||
end
|
||||
end
|
||||
|
||||
--- Create an instance for contribute alert toast
|
||||
--- @param toast table The toast is the logic model defined in defined_toasts
|
||||
--- @param container table Is the table where to put the new toast ui
|
||||
function predicates.contribute(toast, container)
|
||||
if not IS_ADMIN then return end
|
||||
|
||||
if (not info.oem) and (not telemetry_utils.dismiss_notice()) then
|
||||
table.insert(container, create_contribute_toast_ui(toast))
|
||||
end
|
||||
end
|
||||
|
||||
--- @param toast table The toast is the logic model defined in defined_toasts
|
||||
--- @param container table Is the table where to put the new toast ui
|
||||
function predicates.update_ntopng(toast, container)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue