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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
06818655
Commit
06818655
authored
May 17, 2018
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update method name
parent
fd67916f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
app/assets/javascripts/environments/mixins/environments_mixin.js
...ets/javascripts/environments/mixins/environments_mixin.js
+3
-3
app/assets/javascripts/environments/services/environments_service.js
...javascripts/environments/services/environments_service.js
+1
-1
No files found.
app/assets/javascripts/environments/mixins/environments_mixin.js
View file @
06818655
...
...
@@ -66,7 +66,7 @@ export default {
updateContent
(
parameters
)
{
this
.
updateInternalState
(
parameters
);
// fetch new data
return
this
.
service
.
get
(
this
.
requestData
)
return
this
.
service
.
fetchEnvironments
(
this
.
requestData
)
.
then
(
response
=>
this
.
successCallback
(
response
))
.
then
(()
=>
{
// restart polling
...
...
@@ -101,7 +101,7 @@ export default {
fetchEnvironments
()
{
this
.
isLoading
=
true
;
return
this
.
service
.
get
(
this
.
requestData
)
return
this
.
service
.
fetchEnvironments
(
this
.
requestData
)
.
then
(
this
.
successCallback
)
.
catch
(
this
.
errorCallback
);
},
...
...
@@ -137,7 +137,7 @@ export default {
this
.
poll
=
new
Poll
({
resource
:
this
.
service
,
method
:
'
get
'
,
method
:
'
fetchEnvironments
'
,
data
:
this
.
requestData
,
successCallback
:
this
.
successCallback
,
errorCallback
:
this
.
errorCallback
,
...
...
app/assets/javascripts/environments/services/environments_service.js
View file @
06818655
...
...
@@ -6,7 +6,7 @@ export default class EnvironmentsService {
this
.
folderResults
=
3
;
}
get
(
options
=
{})
{
fetchEnvironments
(
options
=
{})
{
const
{
scope
,
page
}
=
options
;
return
axios
.
get
(
this
.
environmentsEndpoint
,
{
params
:
{
scope
,
page
}
});
}
...
...
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