diff --git a/src/app/organization/organizationBillingChangePlanController.js b/src/app/organization/organizationBillingChangePlanController.js new file mode 100644 index 0000000000..bf587a57a1 --- /dev/null +++ b/src/app/organization/organizationBillingChangePlanController.js @@ -0,0 +1,14 @@ +angular + .module('bit.organization') + + .controller('organizationBillingChangePlanController', function ($scope, $state, apiService, $uibModalInstance, + toastr, $analytics) { + $analytics.eventTrack('organizationBillingChangePlanController', { category: 'Modal' }); + $scope.submit = function () { + + }; + + $scope.close = function () { + $uibModalInstance.dismiss('cancel'); + }; + }); diff --git a/src/app/organization/organizationBillingController.js b/src/app/organization/organizationBillingController.js index 3f2e13782d..3c05c5c751 100644 --- a/src/app/organization/organizationBillingController.js +++ b/src/app/organization/organizationBillingController.js @@ -29,6 +29,23 @@ }); }; + $scope.changePlan = function () { + var modal = $uibModal.open({ + animation: true, + templateUrl: 'app/organization/views/organizationBillingChangePlan.html', + controller: 'organizationBillingChangePlanController', + resolve: { + plan: function () { + return $scope.plan; + } + } + }); + + modal.result.then(function () { + load(); + }); + }; + $scope.adjustSeats = function (add) { var modal = $uibModal.open({ animation: true, diff --git a/src/app/organization/views/organizationBillingAdjustSeats.html b/src/app/organization/views/organizationBillingAdjustSeats.html index 9769de9658..dd3535aaef 100644 --- a/src/app/organization/views/organizationBillingAdjustSeats.html +++ b/src/app/organization/views/organizationBillingAdjustSeats.html @@ -7,6 +7,20 @@