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() {
data
:
()
=>
Store
,
template
:
`
<div class="tree-content-holder">
<repo-sidebar/><div class="panel-right">
<repo-sidebar/><div class="panel-right"
:class="{'edit-mode': readOnly}"
>
<repo-tabs/>
<repo-file-buttons/>
<repo-editor/>
...
...
app/assets/javascripts/repo/repo_editor.vue
View file @
5e4f18e2
...
...
@@ -66,15 +66,9 @@ const RepoEditor = {
},
editMode
()
{
const
panelClassList
=
document
.
querySelector
(
'
.panel-right
'
).
classList
;
let
readOnly
=
false
;
const
readOnly
=
!
this
.
editMode
;
if
(
this
.
editMode
)
{
panelClassList
.
add
(
'
edit-mode
'
);
}
else
{
panelClassList
.
remove
(
'
edit-mode
'
);
readOnly
=
true
;
}
Store
.
readOnly
=
readOnly
;
this
.
monacoInstance
.
updateOptions
({
readOnly
,
...
...
app/assets/javascripts/repo/repo_store.js
View file @
5e4f18e2
...
...
@@ -59,6 +59,7 @@ const RepoStore = {
tree
:
false
,
blob
:
false
,
},
readOnly
:
true
,
// 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