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
7ab42caa
Commit
7ab42caa
authored
Jul 12, 2018
by
samdbeckham
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Swaps double quotes for single quotes
parent
8593a7de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
73 additions
and
73 deletions
+73
-73
ee/app/assets/javascripts/vue_shared/security_reports/store/mutations.js
...avascripts/vue_shared/security_reports/store/mutations.js
+73
-73
No files found.
ee/app/assets/javascripts/vue_shared/security_reports/store/mutations.js
View file @
7ab42caa
/* eslint-disable no-param-reassign */
/* eslint-disable no-param-reassign */
import
*
as
types
from
'
./mutation_types
'
;
import
*
as
types
from
'
./mutation_types
'
;
import
Vue
from
"
vue
"
;
import
Vue
from
'
vue
'
;
import
{
import
{
parseSastIssues
,
parseSastIssues
,
parseDependencyScanningIssues
,
parseDependencyScanningIssues
,
...
@@ -14,11 +14,11 @@ import {
...
@@ -14,11 +14,11 @@ import {
export
default
{
export
default
{
[
types
.
SET_HEAD_BLOB_PATH
](
state
,
path
)
{
[
types
.
SET_HEAD_BLOB_PATH
](
state
,
path
)
{
Vue
.
set
(
state
.
blobPath
,
"
head
"
,
path
);
Vue
.
set
(
state
.
blobPath
,
'
head
'
,
path
);
},
},
[
types
.
SET_BASE_BLOB_PATH
](
state
,
path
)
{
[
types
.
SET_BASE_BLOB_PATH
](
state
,
path
)
{
Vue
.
set
(
state
.
blobPath
,
"
base
"
,
path
);
Vue
.
set
(
state
.
blobPath
,
'
base
'
,
path
);
},
},
[
types
.
SET_VULNERABILITY_FEEDBACK_PATH
](
state
,
path
)
{
[
types
.
SET_VULNERABILITY_FEEDBACK_PATH
](
state
,
path
)
{
...
@@ -43,15 +43,15 @@ export default {
...
@@ -43,15 +43,15 @@ export default {
// SAST
// SAST
[
types
.
SET_SAST_HEAD_PATH
](
state
,
path
)
{
[
types
.
SET_SAST_HEAD_PATH
](
state
,
path
)
{
Vue
.
set
(
state
.
sast
.
paths
,
"
head
"
,
path
);
Vue
.
set
(
state
.
sast
.
paths
,
'
head
'
,
path
);
},
},
[
types
.
SET_SAST_BASE_PATH
](
state
,
path
)
{
[
types
.
SET_SAST_BASE_PATH
](
state
,
path
)
{
Vue
.
set
(
state
.
sast
.
paths
,
"
base
"
,
path
);
Vue
.
set
(
state
.
sast
.
paths
,
'
base
'
,
path
);
},
},
[
types
.
REQUEST_SAST_REPORTS
](
state
)
{
[
types
.
REQUEST_SAST_REPORTS
](
state
)
{
Vue
.
set
(
state
.
sast
,
"
isLoading
"
,
true
);
Vue
.
set
(
state
.
sast
,
'
isLoading
'
,
true
);
},
},
/**
/**
...
@@ -79,39 +79,39 @@ export default {
...
@@ -79,39 +79,39 @@ export default {
const
resolvedIssues
=
filterByKey
(
parsedBase
,
parsedHead
,
filterKey
);
const
resolvedIssues
=
filterByKey
(
parsedBase
,
parsedHead
,
filterKey
);
const
allIssues
=
filterByKey
(
parsedHead
,
newIssues
.
concat
(
resolvedIssues
),
filterKey
);
const
allIssues
=
filterByKey
(
parsedHead
,
newIssues
.
concat
(
resolvedIssues
),
filterKey
);
Vue
.
set
(
state
.
sast
,
"
newIssues
"
,
newIssues
);
Vue
.
set
(
state
.
sast
,
'
newIssues
'
,
newIssues
);
Vue
.
set
(
state
.
sast
,
"
resolvedIssues
"
,
resolvedIssues
);
Vue
.
set
(
state
.
sast
,
'
resolvedIssues
'
,
resolvedIssues
);
Vue
.
set
(
state
.
sast
,
"
allIssues
"
,
allIssues
);
Vue
.
set
(
state
.
sast
,
'
allIssues
'
,
allIssues
);
Vue
.
set
(
state
.
sast
,
"
isLoading
"
,
false
);
Vue
.
set
(
state
.
sast
,
'
isLoading
'
,
false
);
state
.
summaryCounts
.
added
+=
newIssues
.
length
;
state
.
summaryCounts
.
added
+=
newIssues
.
length
;
state
.
summaryCounts
.
fixed
+=
resolvedIssues
.
length
;
state
.
summaryCounts
.
fixed
+=
resolvedIssues
.
length
;
}
else
if
(
reports
.
head
&&
!
reports
.
base
)
{
}
else
if
(
reports
.
head
&&
!
reports
.
base
)
{
const
newIssues
=
parseSastIssues
(
reports
.
head
,
reports
.
enrichData
,
state
.
blobPath
.
head
);
const
newIssues
=
parseSastIssues
(
reports
.
head
,
reports
.
enrichData
,
state
.
blobPath
.
head
);
Vue
.
set
(
state
.
sast
,
"
newIssues
"
,
newIssues
);
Vue
.
set
(
state
.
sast
,
'
newIssues
'
,
newIssues
);
Vue
.
set
(
state
.
sast
,
"
isLoading
"
,
false
);
Vue
.
set
(
state
.
sast
,
'
isLoading
'
,
false
);
state
.
summaryCounts
.
added
+=
newIssues
.
length
;
state
.
summaryCounts
.
added
+=
newIssues
.
length
;
}
}
},
},
[
types
.
RECEIVE_SAST_REPORTS_ERROR
](
state
)
{
[
types
.
RECEIVE_SAST_REPORTS_ERROR
](
state
)
{
Vue
.
set
(
state
.
sast
,
"
isLoading
"
,
false
);
Vue
.
set
(
state
.
sast
,
'
isLoading
'
,
false
);
Vue
.
set
(
state
.
sast
,
"
hasError
"
,
true
);
Vue
.
set
(
state
.
sast
,
'
hasError
'
,
true
);
},
},
// SAST CONTAINER
// SAST CONTAINER
[
types
.
SET_SAST_CONTAINER_HEAD_PATH
](
state
,
path
)
{
[
types
.
SET_SAST_CONTAINER_HEAD_PATH
](
state
,
path
)
{
Vue
.
set
(
state
.
sastContainer
.
paths
,
"
head
"
,
path
);
Vue
.
set
(
state
.
sastContainer
.
paths
,
'
head
'
,
path
);
},
},
[
types
.
SET_SAST_CONTAINER_BASE_PATH
](
state
,
path
)
{
[
types
.
SET_SAST_CONTAINER_BASE_PATH
](
state
,
path
)
{
Vue
.
set
(
state
.
sastContainer
.
paths
,
"
base
"
,
path
);
Vue
.
set
(
state
.
sastContainer
.
paths
,
'
base
'
,
path
);
},
},
[
types
.
REQUEST_SAST_CONTAINER_REPORTS
](
state
)
{
[
types
.
REQUEST_SAST_CONTAINER_REPORTS
](
state
)
{
Vue
.
set
(
state
.
sastContainer
,
"
isLoading
"
,
true
);
Vue
.
set
(
state
.
sastContainer
,
'
isLoading
'
,
true
);
},
},
/**
/**
...
@@ -132,9 +132,9 @@ export default {
...
@@ -132,9 +132,9 @@ export default {
const
newIssues
=
filterByKey
(
headIssues
,
baseIssues
,
filterKey
);
const
newIssues
=
filterByKey
(
headIssues
,
baseIssues
,
filterKey
);
const
resolvedIssues
=
filterByKey
(
baseIssues
,
headIssues
,
filterKey
);
const
resolvedIssues
=
filterByKey
(
baseIssues
,
headIssues
,
filterKey
);
Vue
.
set
(
state
.
sastContainer
,
"
newIssues
"
,
newIssues
);
Vue
.
set
(
state
.
sastContainer
,
'
newIssues
'
,
newIssues
);
Vue
.
set
(
state
.
sastContainer
,
"
resolvedIssues
"
,
resolvedIssues
);
Vue
.
set
(
state
.
sastContainer
,
'
resolvedIssues
'
,
resolvedIssues
);
Vue
.
set
(
state
.
sastContainer
,
"
isLoading
"
,
false
);
Vue
.
set
(
state
.
sastContainer
,
'
isLoading
'
,
false
);
state
.
summaryCounts
.
added
+=
newIssues
.
length
;
state
.
summaryCounts
.
added
+=
newIssues
.
length
;
state
.
summaryCounts
.
fixed
+=
resolvedIssues
.
length
;
state
.
summaryCounts
.
fixed
+=
resolvedIssues
.
length
;
...
@@ -144,30 +144,30 @@ export default {
...
@@ -144,30 +144,30 @@ export default {
reports
.
head
.
unapproved
,
reports
.
head
.
unapproved
,
);
);
Vue
.
set
(
state
.
sastContainer
,
"
newIssues
"
,
newIssues
);
Vue
.
set
(
state
.
sastContainer
,
'
newIssues
'
,
newIssues
);
Vue
.
set
(
state
.
sastContainer
,
"
isLoading
"
,
false
);
Vue
.
set
(
state
.
sastContainer
,
'
isLoading
'
,
false
);
state
.
summaryCounts
.
added
+=
newIssues
.
length
;
state
.
summaryCounts
.
added
+=
newIssues
.
length
;
}
}
},
},
[
types
.
RECEIVE_SAST_CONTAINER_ERROR
](
state
)
{
[
types
.
RECEIVE_SAST_CONTAINER_ERROR
](
state
)
{
Vue
.
set
(
state
.
sastContainer
,
"
isLoading
"
,
false
);
Vue
.
set
(
state
.
sastContainer
,
'
isLoading
'
,
false
);
Vue
.
set
(
state
.
sastContainer
,
"
hasError
"
,
true
);
Vue
.
set
(
state
.
sastContainer
,
'
hasError
'
,
true
);
},
},
// DAST
// DAST
[
types
.
SET_DAST_HEAD_PATH
](
state
,
path
)
{
[
types
.
SET_DAST_HEAD_PATH
](
state
,
path
)
{
Vue
.
set
(
state
.
dast
.
paths
,
"
head
"
,
path
);
Vue
.
set
(
state
.
dast
.
paths
,
'
head
'
,
path
);
},
},
[
types
.
SET_DAST_BASE_PATH
](
state
,
path
)
{
[
types
.
SET_DAST_BASE_PATH
](
state
,
path
)
{
Vue
.
set
(
state
.
dast
.
paths
,
"
base
"
,
path
);
Vue
.
set
(
state
.
dast
.
paths
,
'
base
'
,
path
);
},
},
[
types
.
REQUEST_DAST_REPORTS
](
state
)
{
[
types
.
REQUEST_DAST_REPORTS
](
state
)
{
Vue
.
set
(
state
.
dast
,
"
isLoading
"
,
true
);
Vue
.
set
(
state
.
dast
,
'
isLoading
'
,
true
);
},
},
[
types
.
RECEIVE_DAST_REPORTS
](
state
,
reports
)
{
[
types
.
RECEIVE_DAST_REPORTS
](
state
,
reports
)
{
...
@@ -178,39 +178,39 @@ export default {
...
@@ -178,39 +178,39 @@ export default {
const
newIssues
=
filterByKey
(
headIssues
,
baseIssues
,
filterKey
);
const
newIssues
=
filterByKey
(
headIssues
,
baseIssues
,
filterKey
);
const
resolvedIssues
=
filterByKey
(
baseIssues
,
headIssues
,
filterKey
);
const
resolvedIssues
=
filterByKey
(
baseIssues
,
headIssues
,
filterKey
);
Vue
.
set
(
state
.
dast
,
"
newIssues
"
,
newIssues
);
Vue
.
set
(
state
.
dast
,
'
newIssues
'
,
newIssues
);
Vue
.
set
(
state
.
dast
,
"
resolvedIssues
"
,
resolvedIssues
);
Vue
.
set
(
state
.
dast
,
'
resolvedIssues
'
,
resolvedIssues
);
Vue
.
set
(
state
.
dast
,
"
isLoading
"
,
false
);
Vue
.
set
(
state
.
dast
,
'
isLoading
'
,
false
);
state
.
summaryCounts
.
added
+=
newIssues
.
length
;
state
.
summaryCounts
.
added
+=
newIssues
.
length
;
state
.
summaryCounts
.
fixed
+=
resolvedIssues
.
length
;
state
.
summaryCounts
.
fixed
+=
resolvedIssues
.
length
;
}
else
if
(
reports
.
head
&&
reports
.
head
.
site
&&
!
reports
.
base
)
{
}
else
if
(
reports
.
head
&&
reports
.
head
.
site
&&
!
reports
.
base
)
{
const
newIssues
=
parseDastIssues
(
reports
.
head
.
site
.
alerts
,
reports
.
enrichData
);
const
newIssues
=
parseDastIssues
(
reports
.
head
.
site
.
alerts
,
reports
.
enrichData
);
Vue
.
set
(
state
.
dast
,
"
newIssues
"
,
newIssues
);
Vue
.
set
(
state
.
dast
,
'
newIssues
'
,
newIssues
);
Vue
.
set
(
state
.
dast
,
"
isLoading
"
,
false
);
Vue
.
set
(
state
.
dast
,
'
isLoading
'
,
false
);
state
.
summaryCounts
.
added
+=
newIssues
.
length
;
state
.
summaryCounts
.
added
+=
newIssues
.
length
;
}
}
},
},
[
types
.
RECEIVE_DAST_ERROR
](
state
)
{
[
types
.
RECEIVE_DAST_ERROR
](
state
)
{
Vue
.
set
(
state
.
dast
,
"
isLoading
"
,
false
);
Vue
.
set
(
state
.
dast
,
'
isLoading
'
,
false
);
Vue
.
set
(
state
.
dast
,
"
hasError
"
,
true
);
Vue
.
set
(
state
.
dast
,
'
hasError
'
,
true
);
},
},
// DEPENDECY SCANNING
// DEPENDECY SCANNING
[
types
.
SET_DEPENDENCY_SCANNING_HEAD_PATH
](
state
,
path
)
{
[
types
.
SET_DEPENDENCY_SCANNING_HEAD_PATH
](
state
,
path
)
{
Vue
.
set
(
state
.
dependencyScanning
.
paths
,
"
head
"
,
path
);
Vue
.
set
(
state
.
dependencyScanning
.
paths
,
'
head
'
,
path
);
},
},
[
types
.
SET_DEPENDENCY_SCANNING_BASE_PATH
](
state
,
path
)
{
[
types
.
SET_DEPENDENCY_SCANNING_BASE_PATH
](
state
,
path
)
{
Vue
.
set
(
state
.
dependencyScanning
.
paths
,
"
base
"
,
path
);
Vue
.
set
(
state
.
dependencyScanning
.
paths
,
'
base
'
,
path
);
},
},
[
types
.
REQUEST_DEPENDENCY_SCANNING_REPORTS
](
state
)
{
[
types
.
REQUEST_DEPENDENCY_SCANNING_REPORTS
](
state
)
{
Vue
.
set
(
state
.
dependencyScanning
,
"
isLoading
"
,
true
);
Vue
.
set
(
state
.
dependencyScanning
,
'
isLoading
'
,
true
);
},
},
/**
/**
...
@@ -240,10 +240,10 @@ export default {
...
@@ -240,10 +240,10 @@ export default {
const
resolvedIssues
=
filterByKey
(
parsedBase
,
parsedHead
,
filterKey
);
const
resolvedIssues
=
filterByKey
(
parsedBase
,
parsedHead
,
filterKey
);
const
allIssues
=
filterByKey
(
parsedHead
,
newIssues
.
concat
(
resolvedIssues
),
filterKey
);
const
allIssues
=
filterByKey
(
parsedHead
,
newIssues
.
concat
(
resolvedIssues
),
filterKey
);
Vue
.
set
(
state
.
dependencyScanning
,
"
newIssues
"
,
newIssues
);
Vue
.
set
(
state
.
dependencyScanning
,
'
newIssues
'
,
newIssues
);
Vue
.
set
(
state
.
dependencyScanning
,
"
resolvedIssues
"
,
resolvedIssues
);
Vue
.
set
(
state
.
dependencyScanning
,
'
resolvedIssues
'
,
resolvedIssues
);
Vue
.
set
(
state
.
dependencyScanning
,
"
allIssues
"
,
allIssues
);
Vue
.
set
(
state
.
dependencyScanning
,
'
allIssues
'
,
allIssues
);
Vue
.
set
(
state
.
dependencyScanning
,
"
isLoading
"
,
false
);
Vue
.
set
(
state
.
dependencyScanning
,
'
isLoading
'
,
false
);
state
.
summaryCounts
.
added
+=
newIssues
.
length
;
state
.
summaryCounts
.
added
+=
newIssues
.
length
;
state
.
summaryCounts
.
fixed
+=
resolvedIssues
.
length
;
state
.
summaryCounts
.
fixed
+=
resolvedIssues
.
length
;
...
@@ -252,63 +252,63 @@ export default {
...
@@ -252,63 +252,63 @@ export default {
if
(
reports
.
head
&&
!
reports
.
base
)
{
if
(
reports
.
head
&&
!
reports
.
base
)
{
const
newIssues
=
parseDependencyScanningIssues
(
reports
.
head
,
reports
.
enrichData
,
const
newIssues
=
parseDependencyScanningIssues
(
reports
.
head
,
reports
.
enrichData
,
state
.
blobPath
.
head
);
state
.
blobPath
.
head
);
Vue
.
set
(
state
.
dependencyScanning
,
"
newIssues
"
,
newIssues
);
Vue
.
set
(
state
.
dependencyScanning
,
'
newIssues
'
,
newIssues
);
Vue
.
set
(
state
.
dependencyScanning
,
"
isLoading
"
,
false
);
Vue
.
set
(
state
.
dependencyScanning
,
'
isLoading
'
,
false
);
state
.
summaryCounts
.
added
+=
newIssues
.
length
;
state
.
summaryCounts
.
added
+=
newIssues
.
length
;
}
}
},
},
[
types
.
RECEIVE_DEPENDENCY_SCANNING_ERROR
](
state
)
{
[
types
.
RECEIVE_DEPENDENCY_SCANNING_ERROR
](
state
)
{
Vue
.
set
(
state
.
dependencyScanning
,
"
isLoading
"
,
false
);
Vue
.
set
(
state
.
dependencyScanning
,
'
isLoading
'
,
false
);
Vue
.
set
(
state
.
dependencyScanning
,
"
hasError
"
,
true
);
Vue
.
set
(
state
.
dependencyScanning
,
'
hasError
'
,
true
);
},
},
[
types
.
SET_ISSUE_MODAL_DATA
](
state
,
payload
)
{
[
types
.
SET_ISSUE_MODAL_DATA
](
state
,
payload
)
{
const
{
issue
,
status
}
=
payload
;
const
{
issue
,
status
}
=
payload
;
Vue
.
set
(
state
.
modal
,
"
title
"
,
issue
.
title
);
Vue
.
set
(
state
.
modal
,
'
title
'
,
issue
.
title
);
Vue
.
set
(
state
.
modal
.
data
.
description
,
"
value
"
,
issue
.
description
);
Vue
.
set
(
state
.
modal
.
data
.
description
,
'
value
'
,
issue
.
description
);
Vue
.
set
(
state
.
modal
.
data
.
file
,
"
value
"
,
issue
.
location
&&
issue
.
location
.
file
);
Vue
.
set
(
state
.
modal
.
data
.
file
,
'
value
'
,
issue
.
location
&&
issue
.
location
.
file
);
Vue
.
set
(
state
.
modal
.
data
.
file
,
"
url
"
,
issue
.
urlPath
);
Vue
.
set
(
state
.
modal
.
data
.
file
,
'
url
'
,
issue
.
urlPath
);
Vue
.
set
(
state
.
modal
.
data
.
className
,
"
value
"
,
issue
.
location
&&
issue
.
location
.
class
);
Vue
.
set
(
state
.
modal
.
data
.
className
,
'
value
'
,
issue
.
location
&&
issue
.
location
.
class
);
Vue
.
set
(
state
.
modal
.
data
.
methodName
,
"
value
"
,
issue
.
location
&&
issue
.
location
.
method
);
Vue
.
set
(
state
.
modal
.
data
.
methodName
,
'
value
'
,
issue
.
location
&&
issue
.
location
.
method
);
Vue
.
set
(
state
.
modal
.
data
.
namespace
,
"
value
"
,
issue
.
namespace
);
Vue
.
set
(
state
.
modal
.
data
.
namespace
,
'
value
'
,
issue
.
namespace
);
if
(
issue
.
identifiers
&&
issue
.
identifiers
.
length
>
0
)
{
if
(
issue
.
identifiers
&&
issue
.
identifiers
.
length
>
0
)
{
Vue
.
set
(
state
.
modal
.
data
.
identifiers
,
"
value
"
,
issue
.
identifiers
);
Vue
.
set
(
state
.
modal
.
data
.
identifiers
,
'
value
'
,
issue
.
identifiers
);
}
else
{
}
else
{
// Force a null value for identifiers to avoid showing an empty array
// Force a null value for identifiers to avoid showing an empty array
Vue
.
set
(
state
.
modal
.
data
.
identifiers
,
"
value
"
,
null
);
Vue
.
set
(
state
.
modal
.
data
.
identifiers
,
'
value
'
,
null
);
}
}
Vue
.
set
(
state
.
modal
.
data
.
severity
,
"
value
"
,
issue
.
severity
);
Vue
.
set
(
state
.
modal
.
data
.
severity
,
'
value
'
,
issue
.
severity
);
Vue
.
set
(
state
.
modal
.
data
.
confidence
,
"
value
"
,
issue
.
confidence
);
Vue
.
set
(
state
.
modal
.
data
.
confidence
,
'
value
'
,
issue
.
confidence
);
Vue
.
set
(
state
.
modal
.
data
.
solution
,
"
value
"
,
issue
.
solution
);
Vue
.
set
(
state
.
modal
.
data
.
solution
,
'
value
'
,
issue
.
solution
);
if
(
issue
.
links
&&
issue
.
links
.
length
>
0
)
{
if
(
issue
.
links
&&
issue
.
links
.
length
>
0
)
{
Vue
.
set
(
state
.
modal
.
data
.
links
,
"
value
"
,
issue
.
links
);
Vue
.
set
(
state
.
modal
.
data
.
links
,
'
value
'
,
issue
.
links
);
}
else
{
}
else
{
// Force a null value for links to avoid showing an empty array
// Force a null value for links to avoid showing an empty array
Vue
.
set
(
state
.
modal
.
data
.
links
,
"
value
"
,
null
);
Vue
.
set
(
state
.
modal
.
data
.
links
,
'
value
'
,
null
);
}
}
Vue
.
set
(
state
.
modal
.
data
.
instances
,
"
value
"
,
issue
.
instances
);
Vue
.
set
(
state
.
modal
.
data
.
instances
,
'
value
'
,
issue
.
instances
);
Vue
.
set
(
state
.
modal
,
"
vulnerability
"
,
issue
);
Vue
.
set
(
state
.
modal
,
'
vulnerability
'
,
issue
);
Vue
.
set
(
state
.
modal
,
'
isResolved
'
,
status
===
'
success
'
);
Vue
.
set
(
state
.
modal
,
'
isResolved
'
,
status
===
'
success
'
);
// clear previous state
// clear previous state
Vue
.
set
(
state
.
modal
,
"
error
"
,
null
);
Vue
.
set
(
state
.
modal
,
'
error
'
,
null
);
},
},
[
types
.
REQUEST_DISMISS_ISSUE
](
state
)
{
[
types
.
REQUEST_DISMISS_ISSUE
](
state
)
{
Vue
.
set
(
state
.
modal
,
"
isDismissingIssue
"
,
true
);
Vue
.
set
(
state
.
modal
,
'
isDismissingIssue
'
,
true
);
// reset error in case previous state was error
// reset error in case previous state was error
Vue
.
set
(
state
.
modal
,
"
error
"
,
null
);
Vue
.
set
(
state
.
modal
,
'
error
'
,
null
);
},
},
[
types
.
RECEIVE_DISMISS_ISSUE_SUCCESS
](
state
)
{
[
types
.
RECEIVE_DISMISS_ISSUE_SUCCESS
](
state
)
{
Vue
.
set
(
state
.
modal
,
"
isDismissingIssue
"
,
false
);
Vue
.
set
(
state
.
modal
,
'
isDismissingIssue
'
,
false
);
},
},
[
types
.
UPDATE_SAST_ISSUE
](
state
,
issue
)
{
[
types
.
UPDATE_SAST_ISSUE
](
state
,
issue
)
{
...
@@ -384,22 +384,22 @@ export default {
...
@@ -384,22 +384,22 @@ export default {
},
},
[
types
.
RECEIVE_DISMISS_ISSUE_ERROR
](
state
,
error
)
{
[
types
.
RECEIVE_DISMISS_ISSUE_ERROR
](
state
,
error
)
{
Vue
.
set
(
state
.
modal
,
"
error
"
,
error
);
Vue
.
set
(
state
.
modal
,
'
error
'
,
error
);
Vue
.
set
(
state
.
modal
,
"
isDismissingIssue
"
,
false
);
Vue
.
set
(
state
.
modal
,
'
isDismissingIssue
'
,
false
);
},
},
[
types
.
REQUEST_CREATE_ISSUE
](
state
)
{
[
types
.
REQUEST_CREATE_ISSUE
](
state
)
{
Vue
.
set
(
state
.
modal
,
"
isCreatingNewIssue
"
,
true
);
Vue
.
set
(
state
.
modal
,
'
isCreatingNewIssue
'
,
true
);
// reset error in case previous state was error
// reset error in case previous state was error
Vue
.
set
(
state
.
modal
,
"
error
"
,
null
);
Vue
.
set
(
state
.
modal
,
'
error
'
,
null
);
},
},
[
types
.
RECEIVE_CREATE_ISSUE_SUCCESS
](
state
)
{
[
types
.
RECEIVE_CREATE_ISSUE_SUCCESS
](
state
)
{
Vue
.
set
(
state
.
modal
,
"
isCreatingNewIssue
"
,
false
);
Vue
.
set
(
state
.
modal
,
'
isCreatingNewIssue
'
,
false
);
},
},
[
types
.
RECEIVE_CREATE_ISSUE_ERROR
](
state
,
error
)
{
[
types
.
RECEIVE_CREATE_ISSUE_ERROR
](
state
,
error
)
{
Vue
.
set
(
state
.
modal
,
"
error
"
,
error
);
Vue
.
set
(
state
.
modal
,
'
error
'
,
error
);
Vue
.
set
(
state
.
modal
,
"
isCreatingNewIssue
"
,
false
);
Vue
.
set
(
state
.
modal
,
'
isCreatingNewIssue
'
,
false
);
},
},
};
};
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