mirror of
https://github.com/ansible/awx.git
synced 2026-05-09 10:27:37 -02:30
Adding ansible & tower versions to pendo object
Adding these keys to the account_id object
This commit is contained in:
@@ -116,6 +116,7 @@ export default
|
|||||||
var license = data.license_info;
|
var license = data.license_info;
|
||||||
license.analytics_status = data.analytics_status;
|
license.analytics_status = data.analytics_status;
|
||||||
license.version = data.version;
|
license.version = data.version;
|
||||||
|
license.ansible_version = data.ansible_version;
|
||||||
license.tested = false;
|
license.tested = false;
|
||||||
Store('license', license);
|
Store('license', license);
|
||||||
$rootScope.features = Store('license').features;
|
$rootScope.features = Store('license').features;
|
||||||
|
|||||||
@@ -12,7 +12,8 @@ export default
|
|||||||
Store, $log) {
|
Store, $log) {
|
||||||
return {
|
return {
|
||||||
setPendoOptions: function (config) {
|
setPendoOptions: function (config) {
|
||||||
var options = {
|
var tower_version = config.version.split('-')[0],
|
||||||
|
options = {
|
||||||
visitor: {
|
visitor: {
|
||||||
id: null,
|
id: null,
|
||||||
role: null,
|
role: null,
|
||||||
@@ -23,7 +24,9 @@ export default
|
|||||||
planLevel: config.license_type,
|
planLevel: config.license_type,
|
||||||
planPrice: config.instance_count,
|
planPrice: config.instance_count,
|
||||||
creationDate: config.license_date,
|
creationDate: config.license_date,
|
||||||
trial: config.trial
|
trial: config.trial,
|
||||||
|
tower_version: tower_version,
|
||||||
|
ansible_version: config.ansible_version
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
if(config.analytics_status === 'detailed'){
|
if(config.analytics_status === 'detailed'){
|
||||||
|
|||||||
Reference in New Issue
Block a user