2017-08-17 22:00:37 +05:30
|
|
|
<script>
|
|
|
|
import Timeago from 'timeago.js';
|
2017-09-10 17:25:29 +05:30
|
|
|
import _ from 'underscore';
|
|
|
|
import userAvatarLink from '../../vue_shared/components/user_avatar/user_avatar_link.vue';
|
2017-08-17 22:00:37 +05:30
|
|
|
import '../../lib/utils/text_utility';
|
|
|
|
import ActionsComponent from './environment_actions.vue';
|
|
|
|
import ExternalUrlComponent from './environment_external_url.vue';
|
|
|
|
import StopComponent from './environment_stop.vue';
|
|
|
|
import RollbackComponent from './environment_rollback.vue';
|
|
|
|
import TerminalButtonComponent from './environment_terminal_button.vue';
|
|
|
|
import MonitoringButtonComponent from './environment_monitoring.vue';
|
2017-09-10 17:25:29 +05:30
|
|
|
import CommitComponent from '../../vue_shared/components/commit.vue';
|
2017-08-17 22:00:37 +05:30
|
|
|
import eventHub from '../event_hub';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Envrionment Item Component
|
|
|
|
*
|
|
|
|
* Renders a table row for each environment.
|
|
|
|
*/
|
|
|
|
const timeagoInstance = new Timeago();
|
|
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
2017-09-10 17:25:29 +05:30
|
|
|
userAvatarLink,
|
2017-08-17 22:00:37 +05:30
|
|
|
'commit-component': CommitComponent,
|
|
|
|
'actions-component': ActionsComponent,
|
|
|
|
'external-url-component': ExternalUrlComponent,
|
|
|
|
'stop-component': StopComponent,
|
|
|
|
'rollback-component': RollbackComponent,
|
|
|
|
'terminal-button-component': TerminalButtonComponent,
|
|
|
|
'monitoring-button-component': MonitoringButtonComponent,
|
|
|
|
},
|
|
|
|
|
|
|
|
props: {
|
|
|
|
model: {
|
|
|
|
type: Object,
|
|
|
|
required: true,
|
|
|
|
default: () => ({}),
|
|
|
|
},
|
|
|
|
|
|
|
|
canCreateDeployment: {
|
|
|
|
type: Boolean,
|
|
|
|
required: false,
|
|
|
|
default: false,
|
|
|
|
},
|
|
|
|
|
|
|
|
canReadEnvironment: {
|
|
|
|
type: Boolean,
|
|
|
|
required: false,
|
|
|
|
default: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
computed: {
|
|
|
|
/**
|
|
|
|
* Verifies if `last_deployment` key exists in the current Envrionment.
|
|
|
|
* This key is required to render most of the html - this method works has
|
|
|
|
* an helper.
|
|
|
|
*
|
|
|
|
* @returns {Boolean}
|
|
|
|
*/
|
|
|
|
hasLastDeploymentKey() {
|
|
|
|
if (this.model &&
|
|
|
|
this.model.last_deployment &&
|
2017-09-10 17:25:29 +05:30
|
|
|
!_.isEmpty(this.model.last_deployment)) {
|
2017-08-17 22:00:37 +05:30
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Verifies is the given environment has manual actions.
|
|
|
|
* Used to verify if we should render them or nor.
|
|
|
|
*
|
|
|
|
* @returns {Boolean|Undefined}
|
|
|
|
*/
|
|
|
|
hasManualActions() {
|
|
|
|
return this.model &&
|
|
|
|
this.model.last_deployment &&
|
|
|
|
this.model.last_deployment.manual_actions &&
|
|
|
|
this.model.last_deployment.manual_actions.length > 0;
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the value of the `stop_action?` key provided in the response.
|
|
|
|
*
|
|
|
|
* @returns {Boolean}
|
|
|
|
*/
|
|
|
|
hasStopAction() {
|
|
|
|
return this.model && this.model['stop_action?'];
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Verifies if the `deployable` key is present in `last_deployment` key.
|
|
|
|
* Used to verify whether we should or not render the rollback partial.
|
|
|
|
*
|
|
|
|
* @returns {Boolean|Undefined}
|
|
|
|
*/
|
|
|
|
canRetry() {
|
|
|
|
return this.model &&
|
|
|
|
this.hasLastDeploymentKey &&
|
|
|
|
this.model.last_deployment &&
|
|
|
|
this.model.last_deployment.deployable;
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Verifies if the date to be shown is present.
|
|
|
|
*
|
|
|
|
* @returns {Boolean|Undefined}
|
|
|
|
*/
|
|
|
|
canShowDate() {
|
|
|
|
return this.model &&
|
|
|
|
this.model.last_deployment &&
|
|
|
|
this.model.last_deployment.deployable &&
|
|
|
|
this.model.last_deployment.deployable !== undefined;
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Human readable date.
|
|
|
|
*
|
|
|
|
* @returns {String}
|
|
|
|
*/
|
|
|
|
createdDate() {
|
|
|
|
if (this.model &&
|
|
|
|
this.model.last_deployment &&
|
|
|
|
this.model.last_deployment.deployable &&
|
|
|
|
this.model.last_deployment.deployable.created_at) {
|
|
|
|
return timeagoInstance.format(this.model.last_deployment.deployable.created_at);
|
|
|
|
}
|
|
|
|
return '';
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the manual actions with the name parsed.
|
|
|
|
*
|
|
|
|
* @returns {Array.<Object>|Undefined}
|
|
|
|
*/
|
|
|
|
manualActions() {
|
|
|
|
if (this.hasManualActions) {
|
|
|
|
return this.model.last_deployment.manual_actions.map((action) => {
|
|
|
|
const parsedAction = {
|
|
|
|
name: gl.text.humanize(action.name),
|
|
|
|
play_path: action.play_path,
|
|
|
|
playable: action.playable,
|
|
|
|
};
|
|
|
|
return parsedAction;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
return [];
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Builds the string used in the user image alt attribute.
|
|
|
|
*
|
|
|
|
* @returns {String}
|
|
|
|
*/
|
|
|
|
userImageAltDescription() {
|
|
|
|
if (this.model &&
|
|
|
|
this.model.last_deployment &&
|
|
|
|
this.model.last_deployment.user &&
|
|
|
|
this.model.last_deployment.user.username) {
|
|
|
|
return `${this.model.last_deployment.user.username}'s avatar'`;
|
|
|
|
}
|
|
|
|
return '';
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* If provided, returns the commit tag.
|
|
|
|
*
|
|
|
|
* @returns {String|Undefined}
|
|
|
|
*/
|
|
|
|
commitTag() {
|
|
|
|
if (this.model &&
|
|
|
|
this.model.last_deployment &&
|
|
|
|
this.model.last_deployment.tag) {
|
|
|
|
return this.model.last_deployment.tag;
|
|
|
|
}
|
|
|
|
return undefined;
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* If provided, returns the commit ref.
|
|
|
|
*
|
|
|
|
* @returns {Object|Undefined}
|
|
|
|
*/
|
|
|
|
commitRef() {
|
|
|
|
if (this.model &&
|
|
|
|
this.model.last_deployment &&
|
|
|
|
this.model.last_deployment.ref) {
|
|
|
|
return this.model.last_deployment.ref;
|
|
|
|
}
|
|
|
|
return undefined;
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* If provided, returns the commit url.
|
|
|
|
*
|
|
|
|
* @returns {String|Undefined}
|
|
|
|
*/
|
|
|
|
commitUrl() {
|
|
|
|
if (this.model &&
|
|
|
|
this.model.last_deployment &&
|
|
|
|
this.model.last_deployment.commit &&
|
|
|
|
this.model.last_deployment.commit.commit_path) {
|
|
|
|
return this.model.last_deployment.commit.commit_path;
|
|
|
|
}
|
|
|
|
return undefined;
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* If provided, returns the commit short sha.
|
|
|
|
*
|
|
|
|
* @returns {String|Undefined}
|
|
|
|
*/
|
|
|
|
commitShortSha() {
|
|
|
|
if (this.model &&
|
|
|
|
this.model.last_deployment &&
|
|
|
|
this.model.last_deployment.commit &&
|
|
|
|
this.model.last_deployment.commit.short_id) {
|
|
|
|
return this.model.last_deployment.commit.short_id;
|
|
|
|
}
|
|
|
|
return undefined;
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* If provided, returns the commit title.
|
|
|
|
*
|
|
|
|
* @returns {String|Undefined}
|
|
|
|
*/
|
|
|
|
commitTitle() {
|
|
|
|
if (this.model &&
|
|
|
|
this.model.last_deployment &&
|
|
|
|
this.model.last_deployment.commit &&
|
|
|
|
this.model.last_deployment.commit.title) {
|
|
|
|
return this.model.last_deployment.commit.title;
|
|
|
|
}
|
|
|
|
return undefined;
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* If provided, returns the commit tag.
|
|
|
|
*
|
|
|
|
* @returns {Object|Undefined}
|
|
|
|
*/
|
|
|
|
commitAuthor() {
|
|
|
|
if (this.model &&
|
|
|
|
this.model.last_deployment &&
|
|
|
|
this.model.last_deployment.commit &&
|
|
|
|
this.model.last_deployment.commit.author) {
|
|
|
|
return this.model.last_deployment.commit.author;
|
|
|
|
}
|
|
|
|
|
|
|
|
return undefined;
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Verifies if the `retry_path` key is present and returns its value.
|
|
|
|
*
|
|
|
|
* @returns {String|Undefined}
|
|
|
|
*/
|
|
|
|
retryUrl() {
|
|
|
|
if (this.model &&
|
|
|
|
this.model.last_deployment &&
|
|
|
|
this.model.last_deployment.deployable &&
|
|
|
|
this.model.last_deployment.deployable.retry_path) {
|
|
|
|
return this.model.last_deployment.deployable.retry_path;
|
|
|
|
}
|
|
|
|
return undefined;
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Verifies if the `last?` key is present and returns its value.
|
|
|
|
*
|
|
|
|
* @returns {Boolean|Undefined}
|
|
|
|
*/
|
|
|
|
isLastDeployment() {
|
|
|
|
return this.model && this.model.last_deployment &&
|
|
|
|
this.model.last_deployment['last?'];
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Builds the name of the builds needed to display both the name and the id.
|
|
|
|
*
|
|
|
|
* @returns {String}
|
|
|
|
*/
|
|
|
|
buildName() {
|
|
|
|
if (this.model &&
|
|
|
|
this.model.last_deployment &&
|
|
|
|
this.model.last_deployment.deployable) {
|
|
|
|
return `${this.model.last_deployment.deployable.name} #${this.model.last_deployment.deployable.id}`;
|
|
|
|
}
|
|
|
|
return '';
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Builds the needed string to show the internal id.
|
|
|
|
*
|
|
|
|
* @returns {String}
|
|
|
|
*/
|
|
|
|
deploymentInternalId() {
|
|
|
|
if (this.model &&
|
|
|
|
this.model.last_deployment &&
|
|
|
|
this.model.last_deployment.iid) {
|
|
|
|
return `#${this.model.last_deployment.iid}`;
|
|
|
|
}
|
|
|
|
return '';
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Verifies if the user object is present under last_deployment object.
|
|
|
|
*
|
|
|
|
* @returns {Boolean}
|
|
|
|
*/
|
|
|
|
deploymentHasUser() {
|
|
|
|
return this.model &&
|
2017-09-10 17:25:29 +05:30
|
|
|
!_.isEmpty(this.model.last_deployment) &&
|
|
|
|
!_.isEmpty(this.model.last_deployment.user);
|
2017-08-17 22:00:37 +05:30
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the user object nested with the last_deployment object.
|
|
|
|
* Used to render the template.
|
|
|
|
*
|
|
|
|
* @returns {Object}
|
|
|
|
*/
|
|
|
|
deploymentUser() {
|
|
|
|
if (this.model &&
|
2017-09-10 17:25:29 +05:30
|
|
|
!_.isEmpty(this.model.last_deployment) &&
|
|
|
|
!_.isEmpty(this.model.last_deployment.user)) {
|
2017-08-17 22:00:37 +05:30
|
|
|
return this.model.last_deployment.user;
|
|
|
|
}
|
|
|
|
return {};
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Verifies if the build name column should be rendered by verifing
|
|
|
|
* if all the information needed is present
|
|
|
|
* and if the environment is not a folder.
|
|
|
|
*
|
|
|
|
* @returns {Boolean}
|
|
|
|
*/
|
|
|
|
shouldRenderBuildName() {
|
|
|
|
return !this.model.isFolder &&
|
2017-09-10 17:25:29 +05:30
|
|
|
!_.isEmpty(this.model.last_deployment) &&
|
|
|
|
!_.isEmpty(this.model.last_deployment.deployable);
|
2017-08-17 22:00:37 +05:30
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Verifies the presence of all the keys needed to render the buil_path.
|
|
|
|
*
|
|
|
|
* @return {String}
|
|
|
|
*/
|
|
|
|
buildPath() {
|
|
|
|
if (this.model &&
|
|
|
|
this.model.last_deployment &&
|
|
|
|
this.model.last_deployment.deployable &&
|
|
|
|
this.model.last_deployment.deployable.build_path) {
|
|
|
|
return this.model.last_deployment.deployable.build_path;
|
|
|
|
}
|
|
|
|
|
|
|
|
return '';
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Verifies the presence of all the keys needed to render the external_url.
|
|
|
|
*
|
|
|
|
* @return {String}
|
|
|
|
*/
|
|
|
|
externalURL() {
|
|
|
|
if (this.model && this.model.external_url) {
|
|
|
|
return this.model.external_url;
|
|
|
|
}
|
|
|
|
|
|
|
|
return '';
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Verifies if deplyment internal ID should be rendered by verifing
|
|
|
|
* if all the information needed is present
|
|
|
|
* and if the environment is not a folder.
|
|
|
|
*
|
|
|
|
* @returns {Boolean}
|
|
|
|
*/
|
|
|
|
shouldRenderDeploymentID() {
|
|
|
|
return !this.model.isFolder &&
|
2017-09-10 17:25:29 +05:30
|
|
|
!_.isEmpty(this.model.last_deployment) &&
|
2017-08-17 22:00:37 +05:30
|
|
|
this.model.last_deployment.iid !== undefined;
|
|
|
|
},
|
|
|
|
|
|
|
|
environmentPath() {
|
|
|
|
if (this.model && this.model.environment_path) {
|
|
|
|
return this.model.environment_path;
|
|
|
|
}
|
|
|
|
|
|
|
|
return '';
|
|
|
|
},
|
|
|
|
|
|
|
|
monitoringUrl() {
|
|
|
|
if (this.model && this.model.metrics_path) {
|
|
|
|
return this.model.metrics_path;
|
|
|
|
}
|
|
|
|
|
|
|
|
return '';
|
|
|
|
},
|
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
displayEnvironmentActions() {
|
|
|
|
return this.hasManualActions ||
|
|
|
|
this.externalURL ||
|
|
|
|
this.monitoringUrl ||
|
|
|
|
this.hasStopAction ||
|
|
|
|
this.canRetry;
|
2017-08-17 22:00:37 +05:30
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
onClickFolder() {
|
2017-09-10 17:25:29 +05:30
|
|
|
eventHub.$emit('toggleFolder', this.model);
|
2017-08-17 22:00:37 +05:30
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
<template>
|
2017-09-10 17:25:29 +05:30
|
|
|
<div
|
|
|
|
:class="{ 'js-child-row environment-child-row': model.isChildren, 'folder-row': model.isFolder, 'gl-responsive-table-row': !model.isFolder }"
|
|
|
|
role="row">
|
|
|
|
<div class="table-section section-10" role="gridcell">
|
|
|
|
<div
|
|
|
|
v-if="!model.isFolder"
|
|
|
|
class="table-mobile-header"
|
|
|
|
role="rowheader">
|
|
|
|
Environment
|
|
|
|
</div>
|
2017-08-17 22:00:37 +05:30
|
|
|
<a
|
|
|
|
v-if="!model.isFolder"
|
2017-09-10 17:25:29 +05:30
|
|
|
class="environment-name flex-truncate-parent table-mobile-content"
|
2017-08-17 22:00:37 +05:30
|
|
|
:href="environmentPath">
|
2017-09-10 17:25:29 +05:30
|
|
|
<span class="flex-truncate-child">{{model.name}}</span>
|
2017-08-17 22:00:37 +05:30
|
|
|
</a>
|
|
|
|
<span
|
|
|
|
v-else
|
|
|
|
class="folder-name"
|
|
|
|
@click="onClickFolder"
|
|
|
|
role="button">
|
|
|
|
|
|
|
|
<span class="folder-icon">
|
|
|
|
<i
|
|
|
|
v-show="model.isOpen"
|
|
|
|
class="fa fa-caret-down"
|
|
|
|
aria-hidden="true" />
|
|
|
|
<i
|
|
|
|
v-show="!model.isOpen"
|
|
|
|
class="fa fa-caret-right"
|
|
|
|
aria-hidden="true"/>
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<span class="folder-icon">
|
|
|
|
<i
|
|
|
|
class="fa fa-folder"
|
|
|
|
aria-hidden="true" />
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<span>
|
|
|
|
{{model.folderName}}
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<span class="badge">
|
|
|
|
{{model.size}}
|
|
|
|
</span>
|
|
|
|
</span>
|
2017-09-10 17:25:29 +05:30
|
|
|
</div>
|
2017-08-17 22:00:37 +05:30
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
<div class="table-section section-10 deployment-column hidden-xs hidden-sm" role="gridcell">
|
2017-08-17 22:00:37 +05:30
|
|
|
<span v-if="shouldRenderDeploymentID">
|
|
|
|
{{deploymentInternalId}}
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<span v-if="!model.isFolder && deploymentHasUser">
|
|
|
|
by
|
2017-09-10 17:25:29 +05:30
|
|
|
<user-avatar-link
|
|
|
|
class="js-deploy-user-container"
|
|
|
|
:link-href="deploymentUser.web_url"
|
|
|
|
:img-src="deploymentUser.avatar_url"
|
|
|
|
:img-alt="userImageAltDescription"
|
|
|
|
:tooltip-text="deploymentUser.username"
|
|
|
|
/>
|
2017-08-17 22:00:37 +05:30
|
|
|
</span>
|
2017-09-10 17:25:29 +05:30
|
|
|
</div>
|
2017-08-17 22:00:37 +05:30
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
<div class="table-section section-15 hidden-xs hidden-sm" role="gridcell">
|
2017-08-17 22:00:37 +05:30
|
|
|
<a
|
|
|
|
v-if="shouldRenderBuildName"
|
2017-09-10 17:25:29 +05:30
|
|
|
class="build-link flex-truncate-parent"
|
2017-08-17 22:00:37 +05:30
|
|
|
:href="buildPath">
|
2017-09-10 17:25:29 +05:30
|
|
|
<span class="flex-truncate-child">{{buildName}}</span>
|
2017-08-17 22:00:37 +05:30
|
|
|
</a>
|
2017-09-10 17:25:29 +05:30
|
|
|
</div>
|
2017-08-17 22:00:37 +05:30
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
<div class="table-section section-25" role="gridcell">
|
|
|
|
<div
|
|
|
|
v-if="!model.isFolder"
|
|
|
|
role="rowheader"
|
|
|
|
class="table-mobile-header">
|
|
|
|
Commit
|
|
|
|
</div>
|
2017-08-17 22:00:37 +05:30
|
|
|
<div
|
|
|
|
v-if="!model.isFolder && hasLastDeploymentKey"
|
2017-09-10 17:25:29 +05:30
|
|
|
class="js-commit-component table-mobile-content">
|
2017-08-17 22:00:37 +05:30
|
|
|
<commit-component
|
|
|
|
:tag="commitTag"
|
|
|
|
:commit-ref="commitRef"
|
|
|
|
:commit-url="commitUrl"
|
|
|
|
:short-sha="commitShortSha"
|
|
|
|
:title="commitTitle"
|
|
|
|
:author="commitAuthor"/>
|
|
|
|
</div>
|
2017-09-10 17:25:29 +05:30
|
|
|
<div
|
2017-08-17 22:00:37 +05:30
|
|
|
v-if="!model.isFolder && !hasLastDeploymentKey"
|
2017-09-10 17:25:29 +05:30
|
|
|
class="commit-title table-mobile-content">
|
2017-08-17 22:00:37 +05:30
|
|
|
No deployments yet
|
2017-09-10 17:25:29 +05:30
|
|
|
</div>
|
|
|
|
</div>
|
2017-08-17 22:00:37 +05:30
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
<div class="table-section section-10" role="gridcell">
|
|
|
|
<div
|
|
|
|
v-if="!model.isFolder"
|
|
|
|
role="rowheader"
|
|
|
|
class="table-mobile-header">
|
|
|
|
Updated
|
|
|
|
</div>
|
2017-08-17 22:00:37 +05:30
|
|
|
<span
|
|
|
|
v-if="!model.isFolder && canShowDate"
|
2017-09-10 17:25:29 +05:30
|
|
|
class="environment-created-date-timeago table-mobile-content">
|
2017-08-17 22:00:37 +05:30
|
|
|
{{createdDate}}
|
|
|
|
</span>
|
2017-09-10 17:25:29 +05:30
|
|
|
</div>
|
|
|
|
|
|
|
|
<div
|
|
|
|
v-if="!model.isFolder && displayEnvironmentActions"
|
|
|
|
class="table-section section-30 table-button-footer"
|
|
|
|
role="gridcell">
|
2017-08-17 22:00:37 +05:30
|
|
|
|
|
|
|
<div
|
2017-09-10 17:25:29 +05:30
|
|
|
class="btn-group table-action-buttons"
|
2017-08-17 22:00:37 +05:30
|
|
|
role="group">
|
|
|
|
|
|
|
|
<actions-component
|
|
|
|
v-if="hasManualActions && canCreateDeployment"
|
|
|
|
:actions="manualActions"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<external-url-component
|
|
|
|
v-if="externalURL && canReadEnvironment"
|
|
|
|
:external-url="externalURL"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<monitoring-button-component
|
|
|
|
v-if="monitoringUrl && canReadEnvironment"
|
|
|
|
:monitoring-url="monitoringUrl"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<terminal-button-component
|
|
|
|
v-if="model && model.terminal_path"
|
|
|
|
:terminal-path="model.terminal_path"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<stop-component
|
|
|
|
v-if="hasStopAction && canCreateDeployment"
|
|
|
|
:stop-url="model.stop_path"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<rollback-component
|
|
|
|
v-if="canRetry && canCreateDeployment"
|
|
|
|
:is-last-deployment="isLastDeployment"
|
|
|
|
:retry-url="retryUrl"
|
|
|
|
/>
|
|
|
|
</div>
|
2017-09-10 17:25:29 +05:30
|
|
|
</div>
|
|
|
|
</div>
|
2017-08-17 22:00:37 +05:30
|
|
|
</template>
|