Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Письменов Дмитрий Иванович
/
yourroomads
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b4d70359
authored
Aug 08, 2019
by
Jonathan Reinink
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify page titles
1 parent
fa91d2e7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
12 deletions
app/Providers/AppServiceProvider.php
resources/js/Pages/Auth/Login.vue
resources/js/Shared/Layout.vue
app/Providers/AppServiceProvider.php
View file @
b4d7035
...
@@ -29,9 +29,6 @@ class AppServiceProvider extends ServiceProvider
...
@@ -29,9 +29,6 @@ class AppServiceProvider extends ServiceProvider
Inertia
::
share
(
function
()
{
Inertia
::
share
(
function
()
{
return
[
return
[
'app'
=>
[
'name'
=>
Config
::
get
(
'app.name'
),
],
'auth'
=>
[
'auth'
=>
[
'user'
=>
Auth
::
user
()
?
[
'user'
=>
Auth
::
user
()
?
[
'id'
=>
Auth
::
user
()
->
id
,
'id'
=>
Auth
::
user
()
->
id
,
...
...
resources/js/Pages/Auth/Login.vue
View file @
b4d7035
...
@@ -47,7 +47,7 @@ export default {
...
@@ -47,7 +47,7 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
document
.
title
=
`Login |
${
this
.
$page
.
app
.
name
}
`
document
.
title
=
'Login | Ping CRM'
},
},
methods
:
{
methods
:
{
submit
()
{
submit
()
{
...
...
resources/js/Shared/Layout.vue
View file @
b4d7035
...
@@ -72,17 +72,14 @@ export default {
...
@@ -72,17 +72,14 @@ export default {
}
}
},
},
watch
:
{
watch
:
{
title
(
title
)
{
title
:
{
this
.
updatePageTitle
(
title
)
immediate
:
true
,
handler
(
title
)
{
document
.
title
=
title
?
`
${
title
}
| Ping CRM`
:
'Ping CRM'
},
},
},
},
},
mounted
()
{
this
.
updatePageTitle
(
this
.
title
)
},
methods
:
{
methods
:
{
updatePageTitle
(
title
)
{
document
.
title
=
title
?
`
${
title
}
|
${
this
.
$page
.
app
.
name
}
`
:
this
.
$page
.
app
.
name
},
hideDropdownMenus
()
{
hideDropdownMenus
()
{
this
.
showUserMenu
=
false
this
.
showUserMenu
=
false
},
},
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment