This commit is contained in:
2023-02-27 23:55:30 +10:00
parent f6a390595a
commit 26a3191226

View File

@@ -40,7 +40,8 @@
</div> </div>
<div <div
v-if=" v-if="
event.status == 'open' && expired == false && event.status == 'open' &&
expired == false &&
event.registration_type == 'none' event.registration_type == 'none'
" "
class="sm-workshop-registration sm-workshop-registration-none"> class="sm-workshop-registration sm-workshop-registration-none">
@@ -49,7 +50,8 @@
</div> </div>
<div <div
v-if=" v-if="
event.status == 'open' && expired == false && event.status == 'open' &&
expired == false &&
event.registration_type != 'none' event.registration_type != 'none'
" "
class="sm-workshop-registration sm-workshop-registration-url"> class="sm-workshop-registration sm-workshop-registration-url">
@@ -172,11 +174,11 @@ const registerUrl = computed(() => {
return href; return href;
}); });
const expired = computer(()=>{ const expired = computed(() => {
return new SMDate(event.value?.end_at, { return new SMDate(event.value.end_at, {
format: 'ymd', format: "ymd",
}).isBefore(); }).isBefore();
}); });
/** /**
* Load the page data. * Load the page data.