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
5c0c5ae0
Commit
5c0c5ae0
authored
Dec 04, 2020
by
Paul Gascou-Vaillancourt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get Apollo client with getClient method
parent
2255b995
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
ee/app/assets/javascripts/security_configuration/dast_profiles/components/dast_site_profiles_list.vue
...tion/dast_profiles/components/dast_site_profiles_list.vue
+2
-2
ee/spec/frontend/security_configuration/dast_profiles/components/dast_site_profiles_list_spec.js
.../dast_profiles/components/dast_site_profiles_list_spec.js
+1
-1
No files found.
ee/app/assets/javascripts/security_configuration/dast_profiles/components/dast_site_profiles_list.vue
View file @
5c0c5ae0
...
@@ -43,7 +43,7 @@ export default {
...
@@ -43,7 +43,7 @@ export default {
validations
:
{
nodes
=
[]
},
validations
:
{
nodes
=
[]
},
},
},
})
{
})
{
const
store
=
this
.
$apollo
Provider
.
defaultClient
;
const
store
=
this
.
$apollo
.
getClient
()
;
nodes
.
forEach
(({
normalizedTargetUrl
,
status
})
=>
{
nodes
.
forEach
(({
normalizedTargetUrl
,
status
})
=>
{
updateSiteProfilesStatuses
({
updateSiteProfilesStatuses
({
fullPath
:
this
.
fullPath
,
fullPath
:
this
.
fullPath
,
...
@@ -112,7 +112,7 @@ export default {
...
@@ -112,7 +112,7 @@ export default {
fullPath
:
this
.
fullPath
,
fullPath
:
this
.
fullPath
,
normalizedTargetUrl
,
normalizedTargetUrl
,
status
:
PENDING
,
status
:
PENDING
,
store
:
this
.
$apollo
Provider
.
defaultClient
,
store
:
this
.
$apollo
.
getClient
()
,
});
});
},
},
},
},
...
...
ee/spec/frontend/security_configuration/dast_profiles/components/dast_site_profiles_list_spec.js
View file @
5c0c5ae0
...
@@ -181,7 +181,7 @@ describe('EE - DastSiteProfileList', () => {
...
@@ -181,7 +181,7 @@ describe('EE - DastSiteProfileList', () => {
fullPath
:
defaultProps
.
fullPath
,
fullPath
:
defaultProps
.
fullPath
,
normalizedTargetUrl
,
normalizedTargetUrl
,
status
,
status
,
store
:
wrapper
.
vm
.
$apollo
Provider
.
defaultClient
,
store
:
wrapper
.
vm
.
$apollo
.
getClient
()
,
});
});
},
},
);
);
...
...
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