summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFatih Acet <acetfatih@gmail.com>2017-08-22 21:47:29 +0300
committerFatih Acet <acetfatih@gmail.com>2017-08-22 21:47:29 +0300
commit479670df94a4dea82350222c1b09c05e1e2ac18d (patch)
tree37da5ec62db482a1263d7fa04af18cd32f15fbeb
parent4e9f0a091ba0b160b0a09e3bdff2cfd8a75d00ae (diff)
downloadgitlab-ce-479670df94a4dea82350222c1b09c05e1e2ac18d.tar.gz
IssueNotesRefactor: Fix consistent typo.
-rw-r--r--app/assets/javascripts/notes/stores/actions.js4
-rw-r--r--app/assets/javascripts/notes/stores/mutation_types.js2
-rw-r--r--app/assets/javascripts/notes/stores/mutations.js2
-rw-r--r--spec/javascripts/notes/stores/actions_spec.js2
4 files changed, 5 insertions, 5 deletions
diff --git a/app/assets/javascripts/notes/stores/actions.js b/app/assets/javascripts/notes/stores/actions.js
index b2e4e62ebc6..5b3b7528bef 100644
--- a/app/assets/javascripts/notes/stores/actions.js
+++ b/app/assets/javascripts/notes/stores/actions.js
@@ -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 setUserData = ({ commit }, data) => commit(types.SET_USER_DATA, 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_INITIAL_NOTES, data);
export const setTargetNoteHash = ({ commit }, data) => commit(types.SET_TARGET_NOTE_HASH, data);
export const toggleDiscussion = ({ commit }, data) => commit(types.TOGGLE_DISCUSSION, data);
@@ -22,7 +22,7 @@ export const fetchNotes = ({ commit }, path) => service
.fetchNotes(path)
.then(res => res.json())
.then((res) => {
- commit(types.SET_INITAL_NOTES, res);
+ commit(types.SET_INITIAL_NOTES, res);
});
export const deleteNote = ({ commit }, note) => service
diff --git a/app/assets/javascripts/notes/stores/mutation_types.js b/app/assets/javascripts/notes/stores/mutation_types.js
index 4eccc2af56e..cd71533ba9d 100644
--- a/app/assets/javascripts/notes/stores/mutation_types.js
+++ b/app/assets/javascripts/notes/stores/mutation_types.js
@@ -5,7 +5,7 @@ export const REMOVE_PLACEHOLDER_NOTES = 'REMOVE_PLACEHOLDER_NOTES';
export const SET_NOTES_DATA = 'SET_NOTES_DATA';
export const SET_ISSUE_DATA = 'SET_ISSUE_DATA';
export const SET_USER_DATA = 'SET_USER_DATA';
-export const SET_INITAL_NOTES = 'SET_INITIAL_NOTES';
+export const SET_INITIAL_NOTES = 'SET_INITIAL_NOTES';
export const SET_LAST_FETCHED_AT = 'SET_LAST_FETCHED_AT';
export const SET_TARGET_NOTE_HASH = 'SET_TARGET_NOTE_HASH';
export const SHOW_PLACEHOLDER_NOTE = 'SHOW_PLACEHOLDER_NOTE';
diff --git a/app/assets/javascripts/notes/stores/mutations.js b/app/assets/javascripts/notes/stores/mutations.js
index f38a4ccfbb3..ce56fe74b1e 100644
--- a/app/assets/javascripts/notes/stores/mutations.js
+++ b/app/assets/javascripts/notes/stores/mutations.js
@@ -69,7 +69,7 @@ export default {
[types.SET_USER_DATA](state, data) {
Object.assign(state, { userData: data });
},
- [types.SET_INITAL_NOTES](state, notesData) {
+ [types.SET_INITIAL_NOTES](state, notesData) {
Object.assign(state, { notes: notesData });
},
diff --git a/spec/javascripts/notes/stores/actions_spec.js b/spec/javascripts/notes/stores/actions_spec.js
index 68b71f14bd6..72d362acb2f 100644
--- a/spec/javascripts/notes/stores/actions_spec.js
+++ b/spec/javascripts/notes/stores/actions_spec.js
@@ -39,7 +39,7 @@ describe('Actions Notes Store', () => {
describe('setInitialNotes', () => {
it('should set initial notes', (done) => {
testAction(actions.setInitialNotes, null, { notes: [] }, [
- { type: 'SET_INITAL_NOTES', payload: [individualNote] },
+ { type: 'SET_INITIAL_NOTES', payload: [individualNote] },
], done);
});
});