Commit 8d10add4 authored by Sean McGivern's avatar Sean McGivern

Don't show usage ping on settings page

parent ae833a8b
......@@ -365,9 +365,8 @@ const ShortcutsBlob = require('./shortcuts_blob');
case 'admin':
new Admin();
switch (path[1]) {
case 'application_settings':
case 'cohorts':
new gl.ApplicationSettings();
new gl.UsagePing();
break;
case 'groups':
new UsersSelect();
......
......@@ -165,6 +165,7 @@ import './syntax_highlight';
import './task_list';
import './todos';
import './tree';
import './usage_ping';
import './user';
import './user_tabs';
import './username_validator';
......
(global => {
global.gl = global.gl || {};
gl.ApplicationSettings = function() {
gl.UsagePing = function() {
var usage_data_url = $('.usage-data').data('endpoint');
$.ajax({
......
......@@ -493,11 +493,12 @@
= f.check_box :usage_ping_enabled
Usage ping enabled
= link_to icon('question-circle'), help_page_path("user/admin_area/settings/usage_statistics", anchor: "usage-data")
.container
.help-block
Every week GitLab will report license usage back to GitLab, Inc.
Disable this option if you do not want this to occur. This is the JSON payload that will be sent:
%pre.usage-data.js-syntax-highlight.code.highlight{ "data-endpoint" => usage_data_admin_application_settings_path(format: :html) }
Disable this option if you do not want this to occur. To see the
JSON payload that will be sent, visit the
= succeed '.' do
= link_to "Cohorts page", admin_cohorts_path(anchor: 'usage-ping')
%fieldset
%legend Email
......
%h2 Usage ping
%h2#usage-ping Usage ping
.bs-callout.clearfix
%p
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment