geer-builder 1.2.916 → 1.2.917
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/components/GProfile.vue +8 -4
- package/package.json +1 -1
package/components/GProfile.vue
CHANGED
|
@@ -170,12 +170,16 @@ export default
|
|
|
170
170
|
computed: {
|
|
171
171
|
expiration_date_display()
|
|
172
172
|
{
|
|
173
|
-
if (this.enable_expiration && this.slot_info
|
|
173
|
+
if (this.enable_expiration && this.slot_info)
|
|
174
174
|
{
|
|
175
|
-
let
|
|
176
|
-
if (
|
|
175
|
+
let slot = Array.isArray(this.slot_info) ? this.slot_info[0] : this.slot_info;
|
|
176
|
+
if (slot && slot.created_date)
|
|
177
177
|
{
|
|
178
|
-
|
|
178
|
+
let exp_result = this.$_checkSlotExpirationLocal(slot, this.public_settings);
|
|
179
|
+
if (exp_result.expiration_enabled && exp_result.expiration_date)
|
|
180
|
+
{
|
|
181
|
+
return this.$_formatDate(exp_result.expiration_date);
|
|
182
|
+
}
|
|
179
183
|
}
|
|
180
184
|
}
|
|
181
185
|
return null;
|