feat: completion certificate

This commit is contained in:
Jannat Patel
2024-07-11 18:12:15 +05:30
parent 63d613a88e
commit 6e1d62340f
2 changed files with 31 additions and 3 deletions

View File

@@ -63,6 +63,9 @@
{{ __('Start Learning') }}
</span>
</Button>
<Button v-if="canGetCertificate">
{{ __('Get Certificate') }}
</Button>
<router-link
v-if="user?.data?.is_moderator || is_instructor()"
:to="{
@@ -174,4 +177,8 @@ const is_instructor = () => {
})
return user_is_instructor
}
const canGetCertificate = computed(() => {
console.log(props.course)
})
</script>