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
479670df
Commit
479670df
authored
Aug 22, 2017
by
Fatih Acet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IssueNotesRefactor: Fix consistent typo.
parent
4e9f0a09
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
actions.js
app/assets/javascripts/notes/stores/actions.js
+2
-2
mutation_types.js
app/assets/javascripts/notes/stores/mutation_types.js
+1
-1
mutations.js
app/assets/javascripts/notes/stores/mutations.js
+1
-1
actions_spec.js
spec/javascripts/notes/stores/actions_spec.js
+1
-1
No files found.
app/assets/javascripts/notes/stores/actions.js
View file @
479670df
...
@@ -14,7 +14,7 @@ export const setNotesData = ({ commit }, data) => commit(types.SET_NOTES_DATA, d
...
@@ -14,7 +14,7 @@ export const setNotesData = ({ commit }, data) => commit(types.SET_NOTES_DATA, d
export
const
setIssueData
=
({
commit
},
data
)
=>
commit
(
types
.
SET_ISSUE_DATA
,
data
);
export
const
setIssueData
=
({
commit
},
data
)
=>
commit
(
types
.
SET_ISSUE_DATA
,
data
);
export
const
setUserData
=
({
commit
},
data
)
=>
commit
(
types
.
SET_USER_DATA
,
data
);
export
const
setUserData
=
({
commit
},
data
)
=>
commit
(
types
.
SET_USER_DATA
,
data
);
export
const
setLastFetchedAt
=
({
commit
},
data
)
=>
commit
(
types
.
SET_LAST_FETCHED_AT
,
data
);
export
const
setLastFetchedAt
=
({
commit
},
data
)
=>
commit
(
types
.
SET_LAST_FETCHED_AT
,
data
);
export
const
setInitialNotes
=
({
commit
},
data
)
=>
commit
(
types
.
SET_INITAL_NOTES
,
data
);
export
const
setInitialNotes
=
({
commit
},
data
)
=>
commit
(
types
.
SET_INIT
I
AL_NOTES
,
data
);
export
const
setTargetNoteHash
=
({
commit
},
data
)
=>
commit
(
types
.
SET_TARGET_NOTE_HASH
,
data
);
export
const
setTargetNoteHash
=
({
commit
},
data
)
=>
commit
(
types
.
SET_TARGET_NOTE_HASH
,
data
);
export
const
toggleDiscussion
=
({
commit
},
data
)
=>
commit
(
types
.
TOGGLE_DISCUSSION
,
data
);
export
const
toggleDiscussion
=
({
commit
},
data
)
=>
commit
(
types
.
TOGGLE_DISCUSSION
,
data
);
...
@@ -22,7 +22,7 @@ export const fetchNotes = ({ commit }, path) => service
...
@@ -22,7 +22,7 @@ export const fetchNotes = ({ commit }, path) => service
.
fetchNotes
(
path
)
.
fetchNotes
(
path
)
.
then
(
res
=>
res
.
json
())
.
then
(
res
=>
res
.
json
())
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
commit
(
types
.
SET_INITAL_NOTES
,
res
);
commit
(
types
.
SET_INIT
I
AL_NOTES
,
res
);
});
});
export
const
deleteNote
=
({
commit
},
note
)
=>
service
export
const
deleteNote
=
({
commit
},
note
)
=>
service
...
...
app/assets/javascripts/notes/stores/mutation_types.js
View file @
479670df
...
@@ -5,7 +5,7 @@ export const REMOVE_PLACEHOLDER_NOTES = 'REMOVE_PLACEHOLDER_NOTES';
...
@@ -5,7 +5,7 @@ export const REMOVE_PLACEHOLDER_NOTES = 'REMOVE_PLACEHOLDER_NOTES';
export
const
SET_NOTES_DATA
=
'SET_NOTES_DATA'
;
export
const
SET_NOTES_DATA
=
'SET_NOTES_DATA'
;
export
const
SET_ISSUE_DATA
=
'SET_ISSUE_DATA'
;
export
const
SET_ISSUE_DATA
=
'SET_ISSUE_DATA'
;
export
const
SET_USER_DATA
=
'SET_USER_DATA'
;
export
const
SET_USER_DATA
=
'SET_USER_DATA'
;
export
const
SET_INITAL_NOTES
=
'SET_INITIAL_NOTES'
;
export
const
SET_INIT
I
AL_NOTES
=
'SET_INITIAL_NOTES'
;
export
const
SET_LAST_FETCHED_AT
=
'SET_LAST_FETCHED_AT'
;
export
const
SET_LAST_FETCHED_AT
=
'SET_LAST_FETCHED_AT'
;
export
const
SET_TARGET_NOTE_HASH
=
'SET_TARGET_NOTE_HASH'
;
export
const
SET_TARGET_NOTE_HASH
=
'SET_TARGET_NOTE_HASH'
;
export
const
SHOW_PLACEHOLDER_NOTE
=
'SHOW_PLACEHOLDER_NOTE'
;
export
const
SHOW_PLACEHOLDER_NOTE
=
'SHOW_PLACEHOLDER_NOTE'
;
...
...
app/assets/javascripts/notes/stores/mutations.js
View file @
479670df
...
@@ -69,7 +69,7 @@ export default {
...
@@ -69,7 +69,7 @@ export default {
[
types
.
SET_USER_DATA
](
state
,
data
)
{
[
types
.
SET_USER_DATA
](
state
,
data
)
{
Object
.
assign
(
state
,
{
userData
:
data
});
Object
.
assign
(
state
,
{
userData
:
data
});
},
},
[
types
.
SET_INITAL_NOTES
](
state
,
notesData
)
{
[
types
.
SET_INIT
I
AL_NOTES
](
state
,
notesData
)
{
Object
.
assign
(
state
,
{
notes
:
notesData
});
Object
.
assign
(
state
,
{
notes
:
notesData
});
},
},
...
...
spec/javascripts/notes/stores/actions_spec.js
View file @
479670df
...
@@ -39,7 +39,7 @@ describe('Actions Notes Store', () => {
...
@@ -39,7 +39,7 @@ describe('Actions Notes Store', () => {
describe
(
'setInitialNotes'
,
()
=>
{
describe
(
'setInitialNotes'
,
()
=>
{
it
(
'should set initial notes'
,
(
done
)
=>
{
it
(
'should set initial notes'
,
(
done
)
=>
{
testAction
(
actions
.
setInitialNotes
,
null
,
{
notes
:
[]
},
[
testAction
(
actions
.
setInitialNotes
,
null
,
{
notes
:
[]
},
[
{
type
:
'SET_INITAL_NOTES'
,
payload
:
[
individualNote
]
},
{
type
:
'SET_INIT
I
AL_NOTES'
,
payload
:
[
individualNote
]
},
],
done
);
],
done
);
});
});
});
});
...
...
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