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
b0a2a349
Commit
b0a2a349
authored
Dec 01, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resolve editor conflicts
[ci skip]
parent
a23ad6a4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
37 deletions
+0
-37
app/assets/javascripts/repo/lib/editor_options.js
app/assets/javascripts/repo/lib/editor_options.js
+0
-3
spec/javascripts/repo/lib/editor_options_spec.js
spec/javascripts/repo/lib/editor_options_spec.js
+0
-3
spec/javascripts/repo/lib/editor_spec.js
spec/javascripts/repo/lib/editor_spec.js
+0
-31
No files found.
app/assets/javascripts/repo/lib/editor_options.js
View file @
b0a2a349
export
default
[{
<<<<<<<
HEAD
readOnly
:
model
=>
!!
model
.
file
.
file_lock
,
=======
>>>>>>>
upstream
/
master
}];
spec/javascripts/repo/lib/editor_options_spec.js
View file @
b0a2a349
...
...
@@ -4,11 +4,8 @@ describe('Multi-file editor library editor options', () => {
it
(
'
returns an array
'
,
()
=>
{
expect
(
editorOptions
).
toEqual
(
jasmine
.
any
(
Array
));
});
<<<<<<<
HEAD
it
(
'
contains readOnly option
'
,
()
=>
{
expect
(
editorOptions
[
0
].
readOnly
).
toBeDefined
();
});
=======
>>>>>>>
upstream
/
master
});
spec/javascripts/repo/lib/editor_spec.js
View file @
b0a2a349
...
...
@@ -92,37 +92,6 @@ describe('Multi-file editor library', () => {
expect
(
instance
.
dirtyDiffController
.
reDecorate
).
toHaveBeenCalledWith
(
model
);
});
<<<<<<<
HEAD
describe
(
'
updateOptions
'
,
()
=>
{
it
(
'
defaults readOnly to false
'
,
()
=>
{
spyOn
(
instance
.
instance
,
'
updateOptions
'
);
instance
.
attachModel
(
model
);
expect
(
instance
.
instance
.
updateOptions
).
toHaveBeenCalledWith
({
readOnly
:
false
,
});
});
it
(
'
puts editor into readOnly mode when file is locked
'
,
()
=>
{
spyOn
(
instance
.
instance
,
'
updateOptions
'
);
Object
.
assign
(
model
.
file
,
{
file_lock
:
{
name
:
'
test
'
,
},
});
instance
.
attachModel
(
model
);
expect
(
instance
.
instance
.
updateOptions
).
toHaveBeenCalledWith
({
readOnly
:
true
,
});
});
});
=======
>>>>>>>
upstream
/
master
});
describe
(
'
clearEditor
'
,
()
=>
{
...
...
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