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
f275366f
Commit
f275366f
authored
May 08, 2020
by
Ezekiel Kigbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor maintainer review feedback
parent
b960a114
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
ee/app/assets/javascripts/analytics/cycle_analytics/components/base.vue
...javascripts/analytics/cycle_analytics/components/base.vue
+1
-3
ee/app/assets/javascripts/analytics/cycle_analytics/store/actions.js
...ts/javascripts/analytics/cycle_analytics/store/actions.js
+1
-1
ee/app/assets/javascripts/analytics/cycle_analytics/store/modules/custom_stages/actions.js
...cs/cycle_analytics/store/modules/custom_stages/actions.js
+3
-2
No files found.
ee/app/assets/javascripts/analytics/cycle_analytics/components/base.vue
View file @
f275366f
...
...
@@ -299,9 +299,7 @@ export default {
/>
</
template
>
<
template
v-if=
"customStageFormActive"
#content
>
<div
v-if=
"isUpdatingCustomStage"
>
<gl-loading-icon
class=
"mt-4"
size=
"md"
/>
</div>
<gl-loading-icon
v-if=
"isUpdatingCustomStage"
class=
"mt-4"
size=
"md"
/>
<custom-stage-form
v-else
:events=
"formEvents"
...
...
ee/app/assets/javascripts/analytics/cycle_analytics/store/actions.js
View file @
f275366f
...
...
@@ -123,7 +123,7 @@ export const receiveGroupStagesError = ({ commit }, error) => {
export
const
setDefaultSelectedStage
=
({
dispatch
,
getters
})
=>
{
const
{
activeStages
=
[]
}
=
getters
;
if
(
activeStages
&&
activeStages
.
length
)
{
if
(
activeStages
?
.
length
)
{
const
[
firstActiveStage
]
=
activeStages
;
return
Promise
.
all
([
dispatch
(
'
setSelectedStage
'
,
firstActiveStage
),
...
...
ee/app/assets/javascripts/analytics/cycle_analytics/store/modules/custom_stages/actions.js
View file @
f275366f
import
Api
from
'
ee/api
'
;
import
createFlash
from
'
~/flash
'
;
import
{
__
,
sprintf
}
from
'
~/locale
'
;
import
httpStatusCodes
from
'
~/lib/utils/http_status
'
;
import
*
as
types
from
'
./mutation_types
'
;
import
{
removeFlash
,
isStageNameExistsError
}
from
'
../../../utils
'
;
...
...
@@ -48,7 +49,7 @@ export const receiveCreateStageSuccess = ({ commit, dispatch }, { data: { title
export
const
receiveCreateStageError
=
(
{
commit
,
dispatch
},
{
status
=
400
,
errors
=
{},
data
=
{}
}
=
{},
{
status
=
httpStatusCodes
.
BAD_REQUEST
,
errors
=
{},
data
=
{}
}
=
{},
)
=>
{
commit
(
types
.
RECEIVE_CREATE_STAGE_ERROR
);
const
{
name
=
null
}
=
data
;
...
...
@@ -75,7 +76,7 @@ export const createStage = ({ dispatch, rootState }, data) => {
return
dispatch
(
'
receiveCreateStageSuccess
'
,
{
status
,
data
:
responseData
});
})
.
catch
(({
response
}
=
{})
=>
{
const
{
data
:
{
message
,
errors
}
=
null
,
status
=
400
}
=
response
;
const
{
data
:
{
message
,
errors
}
=
null
,
status
=
httpStatusCodes
.
BAD_REQUEST
}
=
response
;
dispatch
(
'
receiveCreateStageError
'
,
{
data
,
message
,
errors
,
status
});
});
};
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