1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 00:33:44 +00:00

move some values to constants for better sharing

This commit is contained in:
Kyle Spearrin
2017-04-10 18:55:18 -04:00
parent 58df3e692b
commit cf22ea2b78
9 changed files with 70 additions and 58 deletions

View File

@@ -2,34 +2,8 @@
.module('bit.settings')
.controller('settingsCreateOrganizationController', function ($scope, $state, apiService, cryptoService,
toastr, $analytics, authService, stripe) {
$scope.plans = {
free: {
basePrice: 0,
noAdditionalSeats: true,
noPayment: true
},
personal: {
basePrice: 1,
annualBasePrice: 12,
baseSeats: 5,
seatPrice: 1,
annualSeatPrice: 12,
maxAdditionalSeats: 5,
annualPlanType: 'personalAnnually'
},
teams: {
basePrice: 5,
annualBasePrice: 60,
monthlyBasePrice: 8,
baseSeats: 5,
seatPrice: 2,
annualSeatPrice: 24,
monthlySeatPrice: 2.5,
monthPlanType: 'teamsMonthly',
annualPlanType: 'teamsAnnually'
}
};
toastr, $analytics, authService, stripe, constants) {
$scope.plans = constants.plans;
$scope.model = {
plan: 'free',
@@ -57,7 +31,7 @@
$scope.changedBusiness = function () {
if ($scope.model.ownedBusiness) {
$scope.model.plan = 'teams'
$scope.model.plan = 'teams';
}
};