Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
CO-OP Search
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kittisak Maneewong
CO-OP Search
Commits
e7f4199a
Commit
e7f4199a
authored
Apr 15, 2019
by
Kittisak Maneewong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make to better
parent
b40ed674
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
4 deletions
+13
-4
app.js
public/js/app.js
+0
-0
app.js
resources/js/app.js
+1
-4
Navbar.vue
resources/js/components/Navbar.vue
+6
-0
AppLayout.vue
resources/js/layouts/AppLayout.vue
+3
-0
EmployerLayout.vue
resources/js/layouts/EmployerLayout.vue
+3
-0
No files found.
public/js/app.js
View file @
e7f4199a
This diff is collapsed.
Click to expand it.
resources/js/app.js
View file @
e7f4199a
...
@@ -29,8 +29,5 @@ const app = new Vue({
...
@@ -29,8 +29,5 @@ const app = new Vue({
el
:
'#app'
,
el
:
'#app'
,
router
,
router
,
store
,
store
,
render
:
h
=>
h
(
App
),
render
:
h
=>
h
(
App
)
created
()
{
this
.
$store
.
dispatch
(
'checkUser'
)
}
});
});
resources/js/components/Navbar.vue
View file @
e7f4199a
...
@@ -77,6 +77,11 @@
...
@@ -77,6 +77,11 @@
<
script
>
<
script
>
export
default
{
export
default
{
data
()
{
return
{
responsive
:
false
}
},
computed
:
{
computed
:
{
currentEmployer
()
{
currentEmployer
()
{
return
this
.
$store
.
getters
.
getEmployer
.
username
return
this
.
$store
.
getters
.
getEmployer
.
username
...
@@ -85,6 +90,7 @@ export default {
...
@@ -85,6 +90,7 @@ export default {
methods
:
{
methods
:
{
logout
()
{
logout
()
{
this
.
$store
.
dispatch
(
'logoutEmployer'
)
this
.
$store
.
dispatch
(
'logoutEmployer'
)
this
.
$router
.
push
(
'/employer/login'
)
}
}
}
}
}
}
...
...
resources/js/layouts/AppLayout.vue
View file @
e7f4199a
...
@@ -26,6 +26,9 @@ export default {
...
@@ -26,6 +26,9 @@ export default {
Toolbar
,
Toolbar
,
Footer
,
Footer
,
Snackbar
Snackbar
},
created
()
{
this
.
$store
.
dispatch
(
'checkUser'
)
}
}
}
}
</
script
>
</
script
>
...
...
resources/js/layouts/EmployerLayout.vue
View file @
e7f4199a
...
@@ -26,6 +26,9 @@ export default {
...
@@ -26,6 +26,9 @@ export default {
Navbar
,
Navbar
,
Footer
,
Footer
,
Snackbar
Snackbar
},
created
()
{
this
.
$store
.
dispatch
(
'checkEmployer'
)
}
}
}
}
</
script
>
</
script
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment