Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wiki-js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
wiki-js
Commits
aa57ea92
Commit
aa57ea92
authored
Jan 01, 2019
by
Nicolas Giard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: discard changes redirect
parent
8c6aca66
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
editor.vue
client/components/editor.vue
+6
-5
No files found.
client/components/editor.vue
View file @
aa57ea92
...
...
@@ -19,7 +19,7 @@
v-icon(color='blue', :left='$vuetify.breakpoint.lgAndUp') sort_by_alpha
span.white--text(v-if='$vuetify.breakpoint.lgAndUp')
{{
$t
(
'editor:page'
)
}}
v-btn(
v-if='
mode === `create` &&
path !== `home`'
v-if='path !== `home`'
outline
color='red'
:class='{ "is-icon": $vuetify.breakpoint.mdAndDown }'
...
...
@@ -29,9 +29,6 @@
span.white--text(v-if='$vuetify.breakpoint.lgAndUp')
{{
$t
(
'common:actions.discard'
)
}}
v-content
component(:is='currentEditor')
v-btn(fixed, bottom, right, color='red', round, @click='exit', dark)
v-icon(left) close
span Close Editor
editor-modal-properties(v-model='dialogProps')
editor-modal-editorselect(v-model='dialogEditorSelector')
editor-modal-unsaved(v-model='dialogUnsaved', @discard='exitGo')
...
...
@@ -265,7 +262,11 @@ export default {
this
.
$store
.
commit
(
`loadingStart`
,
'editor-close'
)
this
.
currentEditor
=
''
_
.
delay
(()
=>
{
window
.
location
.
assign
(
`/
${
this
.
$store
.
get
(
'page/path'
)}
`
)
if
(
this
.
$store
.
get
(
'editor/mode'
)
===
'create'
)
{
window
.
location
.
assign
(
`/`
)
}
else
{
window
.
location
.
assign
(
`/
${
this
.
$store
.
get
(
'page/path'
)}
`
)
}
},
500
)
}
}
...
...
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