set teams plan when business is checked

This commit is contained in:
Kyle Spearrin 2017-04-07 13:54:03 -04:00
parent b11d7be990
commit 60f62b2b50
2 changed files with 9 additions and 2 deletions

View File

@ -48,6 +48,12 @@
}
};
$scope.changedBusiness = function () {
if ($scope.model.ownedBusiness) {
$scope.model.plan = 'teams'
}
};
$scope.submit = function (model) {
var shareKey = cryptoService.makeShareKey();

View File

@ -1,4 +1,4 @@
<section class="content-header">
`<section class="content-header">
<h1>Create Organization</h1>
</section>
<section class="content">
@ -36,7 +36,8 @@
</div>
<div class="checkbox">
<label>
<input type="checkbox" ng-model="model.ownedBusiness"> This account is owned by a business.
<input type="checkbox" ng-model="model.ownedBusiness" ng-click="changedBusiness()">
This account is owned by a business.
</label>
</div>
<div class="row" ng-show="model.ownedBusiness">