mirror of
https://github.com/ansible/awx.git
synced 2026-02-23 05:55:59 -03:30
rename analytics setting
This commit is contained in:
@@ -59,7 +59,7 @@ export default ['i18n', function(i18n) {
|
||||
type: 'textarea',
|
||||
reset: 'CUSTOM_VENV_PATHS'
|
||||
},
|
||||
INSIGHTS_DATA_ENABLED: {
|
||||
INSIGHTS_TRACKING_STATE: {
|
||||
type: 'toggleSwitch'
|
||||
}
|
||||
},
|
||||
|
||||
@@ -11,11 +11,11 @@ export default ['$rootScope', 'Rest', 'GetBasePath', 'ProcessErrors',
|
||||
updateInsightsTrackingState: function(tracking_type) {
|
||||
if (tracking_type === true || tracking_type === false) {
|
||||
Rest.setUrl(`${GetBasePath('settings')}system`);
|
||||
Rest.patch({ INSIGHTS_DATA_ENABLED: tracking_type })
|
||||
Rest.patch({ INSIGHTS_TRACKING_STATE: tracking_type })
|
||||
.catch(function ({data, status}) {
|
||||
ProcessErrors($rootScope, data, status, null, {
|
||||
hdr: 'Error!',
|
||||
msg: 'Failed to patch INSIGHTS_DATA_ENABLED in settings: ' +
|
||||
msg: 'Failed to patch INSIGHTS_TRACKING_STATE in settings: ' +
|
||||
status });
|
||||
});
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user