geer-builder 1.2.913 → 1.2.914

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.
@@ -112,7 +112,8 @@ export default
112
112
  show_elms_login:false,
113
113
  show_elms_login_test:false,
114
114
  show_privilege_card : false,
115
- secondary_slot_code : ''
115
+ secondary_slot_code : '',
116
+ public_settings: {}
116
117
  }),
117
118
  async mounted()
118
119
  {
@@ -126,6 +127,7 @@ export default
126
127
  }
127
128
 
128
129
  let profile = await this.$_getData('public_settings');
130
+ this.public_settings = profile;
129
131
  if(profile.hasOwnProperty('show_privilege_card') && profile.show_privilege_card == true) this.show_privilege_card = true;
130
132
  if(this.secondary_slot_code) this.show_privilege_card = false;
131
133
  if(profile.enable_successflix_product == true)
@@ -168,11 +170,13 @@ export default
168
170
  computed: {
169
171
  expiration_date_display()
170
172
  {
171
- if (this.slot_info && this.slot_info.length > 0 && this.slot_info[0].expiration_date)
173
+ if (this.slot_info && this.slot_info.length > 0 && this.public_settings.slot_expiration && this.public_settings.slot_expiration.enable)
172
174
  {
173
- let ed = this.slot_info[0].expiration_date;
174
- let date = new Date(ed.seconds ? ed.seconds * 1000 : ed);
175
- return this.$_formatDate(date);
175
+ let exp_result = this.$_checkSlotExpirationLocal(this.slot_info[0], this.public_settings);
176
+ if (exp_result.expiration_enabled && exp_result.expiration_date)
177
+ {
178
+ return this.$_formatDate(exp_result.expiration_date);
179
+ }
176
180
  }
177
181
  return null;
178
182
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geer-builder",
3
- "version": "1.2.913",
3
+ "version": "1.2.914",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {