Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
5e4f18e2
Commit
5e4f18e2
authored
Jul 26, 2017
by
Luke "Jared" Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove panel-right query and replace with state value
parent
76ff3dfd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
9 deletions
+4
-9
app/assets/javascripts/repo/index.js
app/assets/javascripts/repo/index.js
+1
-1
app/assets/javascripts/repo/repo_editor.vue
app/assets/javascripts/repo/repo_editor.vue
+2
-8
app/assets/javascripts/repo/repo_store.js
app/assets/javascripts/repo/repo_store.js
+1
-0
No files found.
app/assets/javascripts/repo/index.js
View file @
5e4f18e2
...
@@ -29,7 +29,7 @@ function initRepo() {
...
@@ -29,7 +29,7 @@ function initRepo() {
data
:
()
=>
Store
,
data
:
()
=>
Store
,
template
:
`
template
:
`
<div class="tree-content-holder">
<div class="tree-content-holder">
<repo-sidebar/><div class="panel-right">
<repo-sidebar/><div class="panel-right"
:class="{'edit-mode': readOnly}"
>
<repo-tabs/>
<repo-tabs/>
<repo-file-buttons/>
<repo-file-buttons/>
<repo-editor/>
<repo-editor/>
...
...
app/assets/javascripts/repo/repo_editor.vue
View file @
5e4f18e2
...
@@ -66,15 +66,9 @@ const RepoEditor = {
...
@@ -66,15 +66,9 @@ const RepoEditor = {
},
},
editMode
()
{
editMode
()
{
const
panelClassList
=
document
.
querySelector
(
'
.panel-right
'
).
classList
;
const
readOnly
=
!
this
.
editMode
;
let
readOnly
=
false
;
if
(
this
.
editMode
)
{
Store
.
readOnly
=
readOnly
;
panelClassList
.
add
(
'
edit-mode
'
);
}
else
{
panelClassList
.
remove
(
'
edit-mode
'
);
readOnly
=
true
;
}
this
.
monacoInstance
.
updateOptions
({
this
.
monacoInstance
.
updateOptions
({
readOnly
,
readOnly
,
...
...
app/assets/javascripts/repo/repo_store.js
View file @
5e4f18e2
...
@@ -59,6 +59,7 @@ const RepoStore = {
...
@@ -59,6 +59,7 @@ const RepoStore = {
tree
:
false
,
tree
:
false
,
blob
:
false
,
blob
:
false
,
},
},
readOnly
:
true
,
// mutations
// mutations
...
...
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