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
a16a23cd
Commit
a16a23cd
authored
Feb 19, 2020
by
Ezekiel Kigbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle errors when creating a custom stage
parent
a675cc81
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
ee/app/assets/javascripts/analytics/cycle_analytics/components/custom_stage_form.vue
...nalytics/cycle_analytics/components/custom_stage_form.vue
+9
-5
No files found.
ee/app/assets/javascripts/analytics/cycle_analytics/components/custom_stage_form.vue
View file @
a16a23cd
...
...
@@ -70,13 +70,16 @@ export default {
errors
:
{
type
:
Object
,
required
:
false
,
default
:
()
=>
({})
,
default
:
null
,
},
},
data
()
{
const
defaultErrors
=
this
?.
initialFields
?.
endEventIdentifier
?
{}
:
{
endEventIdentifier
:
[
s__
(
'
CustomCycleAnalytics|Please select a start event first
'
)]
};
?
{
...
defaultFields
,
endEventIdentifier
:
null
}
:
{
...
defaultFields
,
endEventIdentifier
:
[
s__
(
'
CustomCycleAnalytics|Please select a start event first
'
)],
};
return
{
labelEvents
:
getLabelEventsIdentifiers
(
this
.
events
),
fields
:
{
...
...
@@ -84,9 +87,8 @@ export default {
...
this
.
initialFields
,
},
fieldErrors
:
{
...
defaultFields
,
...
this
.
errors
,
...
defaultErrors
,
...
this
.
errors
,
},
};
},
...
...
@@ -167,6 +169,8 @@ export default {
},
watch
:
{
initialFields
(
newFields
)
{
console
.
log
(
'
newFields
'
,
newFields
);
this
.
fields
=
{
...
defaultFields
,
...
newFields
,
...
...
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