1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-20 10:13:31 +00:00

telemetry for organizations

This commit is contained in:
Kyle Spearrin
2017-04-26 10:32:14 -04:00
parent 90b0f3201e
commit d8f54fc15a
14 changed files with 34 additions and 10 deletions

View File

@@ -1,7 +1,7 @@
angular
.module('bit.organization')
.controller('organizationBillingController', function ($scope, apiService, $state, $uibModal, toastr) {
.controller('organizationBillingController', function ($scope, apiService, $state, $uibModal, toastr, $analytics) {
$scope.charges = [];
$scope.paymentSource = null;
$scope.plan = null;
@@ -71,6 +71,7 @@
apiService.organizations.putCancel({ id: $state.params.orgId }, {})
.$promise.then(function (response) {
$analytics.eventTrack('Canceled Plan');
toastr.success('Organization subscription has been canceled.');
load();
});
@@ -83,6 +84,7 @@
apiService.organizations.putReinstate({ id: $state.params.orgId }, {})
.$promise.then(function (response) {
$analytics.eventTrack('Reinstated Plan');
toastr.success('Organization cancellation request has been removed.');
load();
});