-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merging pull request #223 from fga-gpp-mds/issue_183_validacao_periodos
- Loading branch information
Showing
6 changed files
with
58 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,43 @@ | ||
const SET_PROJECT = 'SET_PROJECT'; | ||
const SET_RELEASE_INITIAL_DATE = 'SET_RELEASE_INITIAL_DATE'; | ||
const SET_RELEASE_FINAL_DATE = 'SET_RELEASE_FINAL_DATE'; | ||
|
||
const clientStatus = { | ||
state() { | ||
return { | ||
projectId: null, | ||
releaseInitialDate: null, | ||
releaseFinalDate: null, | ||
}; | ||
}, | ||
mutations: { | ||
[SET_PROJECT](state, id) { | ||
const localState = state; | ||
localState.projectId = id; | ||
}, | ||
|
||
[SET_RELEASE_INITIAL_DATE](state, date) { | ||
const localState = state; | ||
localState.releaseInitialDate = date; | ||
}, | ||
|
||
[SET_RELEASE_FINAL_DATE](state, date) { | ||
const localState = state; | ||
localState.releaseFinalDate = date; | ||
}, | ||
}, | ||
actions: { | ||
setProject({ commit }, projectId) { | ||
commit(SET_PROJECT, projectId); | ||
}, | ||
|
||
setReleaseInitialDate({ commit }, releaseInitialDate) { | ||
commit(SET_RELEASE_INITIAL_DATE, releaseInitialDate); | ||
}, | ||
|
||
setReleaseFinalDate({ commit }, releaseFinalDate) { | ||
commit(SET_RELEASE_FINAL_DATE, releaseFinalDate); | ||
}, | ||
}, | ||
}; | ||
export default clientStatus; |