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
8c7b8139
Commit
8c7b8139
authored
Oct 29, 2020
by
Jose Vargas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor update for apollo query
parent
abf58f3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
10 deletions
+15
-10
app/assets/javascripts/vue_shared/components/runner_instructions/runner_instructions.vue
...ed/components/runner_instructions/runner_instructions.vue
+15
-10
No files found.
app/assets/javascripts/vue_shared/components/runner_instructions/runner_instructions.vue
View file @
8c7b8139
...
...
@@ -44,9 +44,7 @@ export default {
};
},
update
(
data
)
{
this
.
groupId
=
data
.
group
?.
id
;
this
.
projectId
=
data
.
project
?.
id
;
return
data
?.
runnerPlatforms
?.
nodes
;
return
data
;
},
error
()
{
this
.
showAlert
=
true
;
...
...
@@ -59,9 +57,7 @@ export default {
selectedPlatformArchitectures
:
[],
selectedPlatform
:
{},
selectedArchitecture
:
{},
runnerPlatforms
:
[],
projectId
:
''
,
groupId
:
''
,
runnerPlatforms
:
{},
instructions
:
{},
};
},
...
...
@@ -72,10 +68,19 @@ export default {
instructionsEmpty
()
{
return
this
.
instructions
&&
Object
.
keys
(
this
.
instructions
).
length
===
0
;
},
groupId
()
{
return
this
.
runnerPlatforms
?.
group
?.
id
??
''
;
},
projectId
()
{
return
this
.
runnerPlatforms
?.
project
?.
id
??
''
;
},
platforms
()
{
return
this
.
runnerPlatforms
.
runnerPlatforms
?.
nodes
;
},
},
methods
:
{
selectPlatform
(
name
)
{
this
.
selectedPlatform
=
this
.
runnerP
latforms
.
find
(
platform
=>
platform
.
name
===
name
);
this
.
selectedPlatform
=
this
.
p
latforms
.
find
(
platform
=>
platform
.
name
===
name
);
this
.
selectedPlatformArchitectures
=
this
.
selectedPlatform
?.
architectures
?.
nodes
;
[
this
.
selectedArchitecture
]
=
this
.
selectedPlatformArchitectures
;
this
.
selectArchitecture
(
this
.
selectedArchitecture
);
...
...
@@ -88,8 +93,8 @@ export default {
return
{
platform
:
this
.
selectedPlatform
.
name
,
architecture
:
this
.
selectedArchitecture
.
name
,
projectId
:
this
.
projectId
?
this
.
projectId
:
''
,
groupId
:
this
.
groupId
?
this
.
groupId
:
''
,
projectId
:
this
.
projectId
,
groupId
:
this
.
groupId
,
};
},
query
:
getRunnerSetupInstructions
,
...
...
@@ -138,7 +143,7 @@ export default {
<h5>
{{
__
(
'
Environment
'
)
}}
</h5>
<gl-button-group
class=
"gl-mb-5"
>
<gl-button
v-for=
"platform in
runnerP
latforms"
v-for=
"platform in
p
latforms"
:key=
"platform.name"
data-testid=
"platform-button"
@
click=
"selectPlatform(platform.name)"
...
...
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