Commit 6d966143 authored by Filipa Lacerda's avatar Filipa Lacerda

Changes url to path

parent eb53bb70
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
<ul class="dropdown-menu dropdown-menu-align-right"> <ul class="dropdown-menu dropdown-menu-align-right">
<li v-for="action in actions"> <li v-for="action in actions">
<a :href="action.play_url" data-method="post" rel="nofollow" class="js-manual-action-link"> <a :href="action.play_path" data-method="post" rel="nofollow" class="js-manual-action-link">
<span class="action-play-icon-container"> <span class="action-play-icon-container">
<!-- svg goes here --> <!-- svg goes here -->
</span> </span>
......
...@@ -168,7 +168,7 @@ ...@@ -168,7 +168,7 @@
return this.model.last_deployment.manual_actions.map((action) => { return this.model.last_deployment.manual_actions.map((action) => {
const parsedAction = { const parsedAction = {
name: gl.text.humanize(action.name), name: gl.text.humanize(action.name),
play_url: action.play_url, play_path: action.play_path,
}; };
return parsedAction; return parsedAction;
}); });
...@@ -224,8 +224,8 @@ ...@@ -224,8 +224,8 @@
commitUrl() { commitUrl() {
if (this.model.last_deployment && if (this.model.last_deployment &&
this.model.last_deployment.commit && this.model.last_deployment.commit &&
this.model.last_deployment.commit.commit_url) { this.model.last_deployment.commit.commit_path) {
return this.model.last_deployment.commit.commit_url; return this.model.last_deployment.commit.commit_path;
} }
return undefined; return undefined;
}, },
...@@ -274,15 +274,15 @@ ...@@ -274,15 +274,15 @@
}, },
/** /**
* Verifies if the `retry_url` key is present and returns its value. * Verifies if the `retry_path` key is present and returns its value.
* *
* @returns {String|Undefined} * @returns {String|Undefined}
*/ */
retryUrl() { retryUrl() {
if (this.model.last_deployment && if (this.model.last_deployment &&
this.model.last_deployment.deployable && this.model.last_deployment.deployable &&
this.model.last_deployment.deployable.retry_url) { this.model.last_deployment.deployable.retry_path) {
return this.model.last_deployment.deployable.retry_url; return this.model.last_deployment.deployable.retry_path;
} }
return undefined; return undefined;
}, },
...@@ -355,7 +355,7 @@ ...@@ -355,7 +355,7 @@
<a <a
v-if="!isFolder" v-if="!isFolder"
class="environment-name" class="environment-name"
:href="model.environment_url" :href="model.environment_path"
v-html="model.name"> v-html="model.name">
</a> </a>
<span v-else v-on:click="toggleRow(model)" class="folder-name"> <span v-else v-on:click="toggleRow(model)" class="folder-name">
...@@ -390,7 +390,7 @@ ...@@ -390,7 +390,7 @@
<td> <td>
<a v-if="!isFolder && model.last_deployment && model.last_deployment.deployable" <a v-if="!isFolder && model.last_deployment && model.last_deployment.deployable"
class="build-link" class="build-link"
:href="model.last_deployment.deployable.build_url" :href="model.last_deployment.deployable.build_path"
v-html="buildName"> v-html="buildName">
</a> </a>
</td> </td>
...@@ -435,7 +435,7 @@ ...@@ -435,7 +435,7 @@
<div v-if="isStoppable && canCreateDeployment" class="inline js-stop-component-container"> <div v-if="isStoppable && canCreateDeployment" class="inline js-stop-component-container">
<stop-component <stop-component
:stop_url="model.environment_url"> :stop_url="model.environment_path">
</stop-component> </stop-component>
</div> </div>
......
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