geer-builder 1.2.926 → 1.2.928

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/GRegistration.vue CHANGED
@@ -272,7 +272,8 @@ export default
272
272
  {
273
273
  delete this.form_data.international_country;
274
274
  }
275
- if(this.val == false)
275
+ let has_terms = this.terms_and_conditions && typeof this.terms_and_conditions.terms_and_conditions === 'string' && this.terms_and_conditions.terms_and_conditions;
276
+ if(!this.val && has_terms)
276
277
  {
277
278
  this.is_term_and_condition_open = true;
278
279
  }
@@ -7,8 +7,6 @@ import DB_SETTINGS from '../models/DB_SETTINGS';
7
7
  import { formatDate } from '../utilities/DateUtils';
8
8
  import FAccountClass from '../classes/FAccountClass';
9
9
 
10
- const _settings_store = {};
11
- const _pending_requests = {};
12
10
 
13
11
  export default
14
12
  {
@@ -119,38 +117,18 @@ export default
119
117
  },
120
118
  async $_getData(key, country = null)
121
119
  {
122
- let store_key = country ? `${key}_${country}` : key;
123
-
124
- if (_settings_store.hasOwnProperty(store_key))
120
+ let data;
121
+ if (key == "membership_list" && country != null)
125
122
  {
126
- return _settings_store[store_key];
123
+ let res = await new DB_SETTINGS().get(key);
124
+ data = await this.filterMembershipByCountry(res, country);
127
125
  }
128
-
129
- if (_pending_requests[store_key])
126
+ else
130
127
  {
131
- return _pending_requests[store_key];
128
+ data = await new DB_SETTINGS().get(key);
132
129
  }
133
130
 
134
- _pending_requests[store_key] = (async () =>
135
- {
136
- let data;
137
- if (key == "membership_list" && country != null)
138
- {
139
- let res = await new DB_SETTINGS().get(key);
140
- data = await this.filterMembershipByCountry(res, country);
141
- }
142
- else
143
- {
144
- data = await new DB_SETTINGS().get(key);
145
- }
146
-
147
- let value = data.value;
148
- _settings_store[store_key] = value;
149
- delete _pending_requests[store_key];
150
- return value;
151
- })();
152
-
153
- return _pending_requests[store_key];
131
+ return data.value;
154
132
  },
155
133
  $_formatNumber(number, options)
156
134
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geer-builder",
3
- "version": "1.2.926",
3
+ "version": "1.2.928",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {