Commit f9777d81 authored by Jose Vargas's avatar Jose Vargas

Replace underscore/lodash in subscriptions

parent edb7fb3e
<script>
import _ from 'underscore';
import { isEmpty } from 'lodash';
import autofocusonshow from '~/vue_shared/directives/autofocusonshow';
import { mapState, mapActions } from 'vuex';
import { GlFormGroup, GlFormInput, GlFormSelect } from '@gitlab/ui';
......@@ -77,10 +77,10 @@ export default {
},
isValid() {
return (
!_.isEmpty(this.country) &&
!_.isEmpty(this.streetAddressLine1) &&
!_.isEmpty(this.city) &&
!_.isEmpty(this.zipCode)
!isEmpty(this.country) &&
!isEmpty(this.streetAddressLine1) &&
!isEmpty(this.city) &&
!isEmpty(this.zipCode)
);
},
countryOptionsWithDefault() {
......
<script>
import _ from 'underscore';
import { isEmpty } from 'lodash';
import autofocusonshow from '~/vue_shared/directives/autofocusonshow';
import { mapState, mapGetters, mapActions } from 'vuex';
import { NEW_GROUP } from 'ee/subscriptions/new/constants';
......@@ -74,13 +74,13 @@ export default {
isValid() {
if (this.isSetupForCompany) {
return (
!_.isEmpty(this.selectedPlan) &&
(!_.isEmpty(this.organizationName) || this.isGroupSelected) &&
!isEmpty(this.selectedPlan) &&
(!isEmpty(this.organizationName) || this.isGroupSelected) &&
this.numberOfUsers > 0 &&
this.numberOfUsers >= this.selectedGroupUsers
);
}
return !_.isEmpty(this.selectedPlan) && this.numberOfUsers === 1;
return !isEmpty(this.selectedPlan) && this.numberOfUsers === 1;
},
isShowingGroupSelector() {
return !this.isNewUser && this.groupData.length;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment