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
6890d9e0
Commit
6890d9e0
authored
Mar 01, 2020
by
NGPixel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: edit title from header in editors
parent
13a99513
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
editor.vue
client/components/editor.vue
+15
-4
No files found.
client/components/editor.vue
View file @
6890d9e0
...
...
@@ -2,9 +2,16 @@
v-app.editor(:dark='darkMode')
nav-header(dense)
template(slot='mid')
v-spacer
.subtitle-1.grey--text
{{
currentPageTitle
}}
v-spacer
v-text-field.editor-title-input(
dark
solo
flat
v-model='currentPageTitle'
hide-details
background-color='black'
dense
full-width
)
template(slot='actions')
v-btn.animated.fadeInDown(
text
...
...
@@ -133,7 +140,7 @@ export default {
activeModal
:
sync
(
'editor/activeModal'
),
mode
:
get
(
'editor/mode'
),
welcomeMode
()
{
return
this
.
mode
===
`create`
&&
this
.
path
===
`home`
},
currentPageTitle
:
get
(
'page/title'
),
currentPageTitle
:
sync
(
'page/title'
),
isDirty
()
{
return
_
.
some
([
this
.
initContentParsed
!==
this
.
$store
.
get
(
'editor/content'
),
...
...
@@ -328,6 +335,10 @@ export default {
.application--wrap
{
background-color
:
mc
(
'grey'
,
'900'
);
}
&
-title-input
input
{
text-align
:
center
;
}
}
.atom-spinner.is-inline
{
...
...
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