This commit is contained in:
Mike Greiling 2018-08-03 15:57:07 -05:00
parent 955e4e9825
commit 7e793af321
No known key found for this signature in database
GPG Key ID: 0303DF507FA67596
1 changed files with 2 additions and 14 deletions

View File

@ -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.
* (`is_protected` currently only set in EE)
@ -635,7 +623,7 @@ export default {
/>
<actions-component
v-if="hasManualActions && isDeployableByUser"
v-if="hasManualActions && canCreateDeployment"
:actions="manualActions"
/>
@ -645,7 +633,7 @@ export default {
/>
<rollback-component
v-if="canRetry && isDeployableByUser"
v-if="canRetry && canCreateDeployment"
:is-last-deployment="isLastDeployment"
:retry-url="retryUrl"
/>