Simplify page titles
This commit is contained in:
parent
fa91d2e76f
commit
b4d70359db
|
@ -29,9 +29,6 @@ class AppServiceProvider extends ServiceProvider
|
|||
|
||||
Inertia::share(function () {
|
||||
return [
|
||||
'app' => [
|
||||
'name' => Config::get('app.name'),
|
||||
],
|
||||
'auth' => [
|
||||
'user' => Auth::user() ? [
|
||||
'id' => Auth::user()->id,
|
||||
|
|
|
@ -47,7 +47,7 @@ export default {
|
|||
}
|
||||
},
|
||||
mounted() {
|
||||
document.title = `Login | ${this.$page.app.name}`
|
||||
document.title = 'Login | Ping CRM'
|
||||
},
|
||||
methods: {
|
||||
submit() {
|
||||
|
|
|
@ -72,17 +72,14 @@ export default {
|
|||
}
|
||||
},
|
||||
watch: {
|
||||
title(title) {
|
||||
this.updatePageTitle(title)
|
||||
title: {
|
||||
immediate: true,
|
||||
handler(title) {
|
||||
document.title = title ? `${title} | Ping CRM` : 'Ping CRM'
|
||||
},
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
this.updatePageTitle(this.title)
|
||||
},
|
||||
methods: {
|
||||
updatePageTitle(title) {
|
||||
document.title = title ? `${title} | ${this.$page.app.name}` : this.$page.app.name
|
||||
},
|
||||
hideDropdownMenus() {
|
||||
this.showUserMenu = false
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue