BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
3176e298
Commit
3176e298
authored
Nov 18, 2016
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expose stop_path for environment to not construct that in frontend
parent
b1f5af40
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
environment_item.js.es6
...vascripts/environments/components/environment_item.js.es6
+1
-1
environment_stop.js.es6
...vascripts/environments/components/environment_stop.js.es6
+1
-1
environment_entity.rb
app/serializers/environment_entity.rb
+7
-0
No files found.
app/assets/javascripts/environments/components/environment_item.js.es6
View file @
3176e298
...
...
@@ -475,7 +475,7 @@
<div v-if="isStoppable && canCreateDeployment"
class="inline js-stop-component-container">
<stop-component
:stop_url="model.
environment
_path">
:stop_url="model.
stop
_path">
</stop-component>
</div>
...
...
app/assets/javascripts/environments/components/environment_stop.js.es6
View file @
3176e298
...
...
@@ -15,7 +15,7 @@
computed: {
stopUrl() {
return
`${this.stop_url}/stop`
;
return
this.stop_url
;
},
},
...
...
app/serializers/environment_entity.rb
View file @
3176e298
...
...
@@ -16,5 +16,12 @@ class EnvironmentEntity < Grape::Entity
environment
)
end
expose
:stop_path
do
|
environment
|
stop_namespace_project_environment_path
(
environment
.
project
.
namespace
,
environment
.
project
,
environment
)
end
expose
:created_at
,
:updated_at
end
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