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
a753c4fd
Commit
a753c4fd
authored
Oct 01, 2020
by
Emily Ring
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace writeData method with writeQuery
parent
5f5ff212
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
ee/app/assets/javascripts/clusters_list/load_agents.js
ee/app/assets/javascripts/clusters_list/load_agents.js
+3
-1
No files found.
ee/app/assets/javascripts/clusters_list/load_agents.js
View file @
a753c4fd
import
Agents
from
'
./components/agents.vue
'
;
import
createDefaultClient
from
'
~/lib/graphql
'
;
import
getAgentsQuery
from
'
./graphql/queries/get_agents.query.graphql
'
;
export
default
(
Vue
,
VueApollo
)
=>
{
const
el
=
document
.
querySelector
(
'
#js-cluster-agents-list
'
);
...
...
@@ -10,7 +11,8 @@ export default (Vue, VueApollo) => {
const
defaultClient
=
createDefaultClient
();
defaultClient
.
cache
.
writeData
({
defaultClient
.
cache
.
writeQuery
({
query
:
getAgentsQuery
,
/* eslint-disable @gitlab/require-i18n-strings */
data
:
{
project
:
{
...
...
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