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
98016d3c
Commit
98016d3c
authored
Jun 21, 2020
by
NGPixel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: editor saved state
parent
09114524
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
editor.vue
client/components/editor.vue
+11
-3
editor-modal-properties.vue
client/components/editor/editor-modal-properties.vue
+1
-1
No files found.
client/components/editor.vue
View file @
98016d3c
...
...
@@ -168,7 +168,9 @@ export default {
publishEndDate
:
''
,
publishStartDate
:
''
,
tags
:
''
,
title
:
''
title
:
''
,
css
:
''
,
js
:
''
}
}
},
...
...
@@ -188,7 +190,11 @@ export default {
this
.
savedState
.
title
!==
this
.
$store
.
get
(
'page/title'
),
this
.
savedState
.
description
!==
this
.
$store
.
get
(
'page/description'
),
this
.
savedState
.
tags
!==
this
.
$store
.
get
(
'page/tags'
),
this
.
savedState
.
isPublished
!==
this
.
$store
.
get
(
'page/isPublished'
)
this
.
savedState
.
isPublished
!==
this
.
$store
.
get
(
'page/isPublished'
),
this
.
savedState
.
publishStartDate
!==
this
.
$store
.
get
(
'page/publishStartDate'
),
this
.
savedState
.
publishEndDate
!==
this
.
$store
.
get
(
'page/publishEndDate'
),
this
.
savedState
.
css
!==
this
.
$store
.
get
(
'page/scriptCss'
),
this
.
savedState
.
js
!==
this
.
$store
.
get
(
'page/scriptJs'
)
],
Boolean
)
}
},
...
...
@@ -526,7 +532,9 @@ export default {
publishEndDate
:
this
.
$store
.
get
(
'page/publishEndDate'
)
||
''
,
publishStartDate
:
this
.
$store
.
get
(
'page/publishStartDate'
)
||
''
,
tags
:
this
.
$store
.
get
(
'page/tags'
),
title
:
this
.
$store
.
get
(
'page/title'
)
title
:
this
.
$store
.
get
(
'page/title'
),
css
:
this
.
$store
.
get
(
'page/scriptCss'
),
js
:
this
.
$store
.
get
(
'page/scriptJs'
)
}
},
injectCustomCss
:
_
.
debounce
(
css
=>
{
...
...
client/components/editor/editor-modal-properties.vue
View file @
98016d3c
...
...
@@ -21,7 +21,7 @@
v-tab
{{
$t
(
'editor:props.info'
)
}}
v-tab
{{
$t
(
'editor:props.scheduling'
)
}}
v-tab(:disabled='!hasScriptPermission')
{{
$t
(
'editor:props.scripts'
)
}}
v-tab
{{
$t
(
'editor:props.social'
)
}}
v-tab
(disabled)
{{
$t
(
'editor:props.social'
)
}}
v-tab(:disabled='!hasStylePermission')
{{
$t
(
'editor:props.styles'
)
}}
v-tab-item(transition='fade-transition', reverse-transition='fade-transition')
v-card-text.pt-5
...
...
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