Commit c2c9b3dd authored by Fatih Acet's avatar Fatih Acet

Merge branch 'mg-revert-unneeded-changes-protected-environments' into 'master'

Revert some unneeded code changes from environment list

See merge request gitlab-org/gitlab-ce!21026
parents 955e4e98 7e793af3
...@@ -86,18 +86,6 @@ export default { ...@@ -86,18 +86,6 @@ export default {
); );
}, },
/**
* Checkes whether the user is allowed to deploy to this environment.
* (`can_deploy` currently only set in EE)
*
* @returns {Boolean}
*/
isDeployableByUser() {
return this.model && 'can_deploy' in this.model
? this.model.can_deploy
: this.canCreateDeployment;
},
/** /**
* Checkes whether the environment is protected. * Checkes whether the environment is protected.
* (`is_protected` currently only set in EE) * (`is_protected` currently only set in EE)
...@@ -635,7 +623,7 @@ export default { ...@@ -635,7 +623,7 @@ export default {
/> />
<actions-component <actions-component
v-if="hasManualActions && isDeployableByUser" v-if="hasManualActions && canCreateDeployment"
:actions="manualActions" :actions="manualActions"
/> />
...@@ -645,7 +633,7 @@ export default { ...@@ -645,7 +633,7 @@ export default {
/> />
<rollback-component <rollback-component
v-if="canRetry && isDeployableByUser" v-if="canRetry && canCreateDeployment"
:is-last-deployment="isLastDeployment" :is-last-deployment="isLastDeployment"
:retry-url="retryUrl" :retry-url="retryUrl"
/> />
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment