fix typo
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user