add admin_document_title

This commit is contained in:
radhika587
2022-02-18 12:21:13 +05:30
parent 2383e89daa
commit 0578122fc3
5 changed files with 30 additions and 2 deletions

View File

@ -54,7 +54,8 @@
"
>
<p class="mb-3">
Copyright @ Crater Invoice, Inc. {{ new Date().getFullYear() }}
Copyright @ {{ documentTitle }}, Inc.
{{ new Date().getFullYear() }}
</p>
</div>
</div>
@ -159,6 +160,14 @@ const pageDescription = computed(() => {
return 'Crater helps you track expenses, record payments & generate beautiful invoices & estimates.'
})
const documentTitle = computed(() => {
if (window.admin_document_title) {
return window.admin_document_title
}
return 'Crater Invoice'
})
const loginPageLogo = computed(() => {
if (window.login_page_logo) {
return window.login_page_logo

View File

@ -57,6 +57,11 @@
window.login_page_description = "{{$login_page_description}}"
@endif
@if(isset($admin_document_title))
window.admin_document_title = "{{$admin_document_title}}"
@endif
window.Crater.start()
</script>