BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
5e4f18e2
Unverified
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
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
9 deletions
+4
-9
index.js
app/assets/javascripts/repo/index.js
+1
-1
repo_editor.vue
app/assets/javascripts/repo/repo_editor.vue
+2
-8
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