Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
simple-editor
Overview
Overview
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
Schedules
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Public
simple-editor
Commits
bbf13755
Commit
bbf13755
authored
Jan 14, 2022
by
Jonathan Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added 'Editor' router-link, disabled when on the 'Projects' page.
parent
37f5eb1b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
App.vue
src/App.vue
+12
-2
No files found.
src/App.vue
View file @
bbf13755
...
...
@@ -15,7 +15,13 @@
<router-link
to=
"/login"
class=
"nav-link"
aria-current=
"page"
>
Login
</router-link>
</li>
<li
v-show=
"isAuthenticated"
class=
"nav-item"
>
<router-link
to=
"/"
class=
"nav-link"
aria-current=
"page"
>
Projects
</router-link>
<router-link
to=
"/"
class=
"nav-link"
aria-current=
"page"
exact
>
Projects
</router-link>
</li>
<li
v-if=
"project"
v-show=
"isAuthenticated"
class=
"nav-item"
>
<router-link
:to=
"
{'name': 'Editor', 'id': project.id}" class="nav-link" aria-current="page">Editor
</router-link>
</li>
<li
v-if=
"!project"
v-show=
"isAuthenticated"
class=
"nav-item"
>
<router-link
to=
"/projects/none"
class=
"nav-link"
aria-current=
"page"
:class=
"
{ disabled: !project }">Editor
</router-link>
</li>
<li
v-show=
"isAuthenticated"
class=
"nav-item"
>
<router-link
to=
"/about"
class=
"nav-link"
aria-current=
"page"
>
About
</router-link>
...
...
@@ -61,7 +67,7 @@ export default {
},
computed
:
{
...
mapGetters
([
'isAuthenticated'
]),
...
mapState
([
'errors'
])
...
mapState
([
'errors'
,
'project'
])
},
async
created
()
{
// auto-login on subsequent visits
...
...
@@ -87,4 +93,8 @@ export default {
.error-message
{
text-transform
:
capitalize
;
}
.disabled
{
opacity
:
0.5
;
pointer-events
:
none
;
}
</
style
>
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