Fixed Utility Function based on Review Comments
This commit is contained in:
parent
a868ca0b12
commit
9d958af5a2
|
@ -9,12 +9,6 @@ export default {
|
|||
directives: {
|
||||
tooltip,
|
||||
},
|
||||
props: {
|
||||
file: {
|
||||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
|
@ -22,7 +16,7 @@ export default {
|
|||
<icon
|
||||
name="git-merge"
|
||||
v-tooltip
|
||||
title="Part of merge request changes"
|
||||
title="__('Part of merge request changes')"
|
||||
css-classes="ide-file-changed-icon"
|
||||
:size="12"
|
||||
/>
|
||||
|
|
|
@ -103,7 +103,6 @@ export default {
|
|||
</span>
|
||||
<span class="pull-right">
|
||||
<mr-file-icon
|
||||
:file="file"
|
||||
v-if="file.mrChange"
|
||||
/>
|
||||
<changed-file-icon
|
||||
|
|
|
@ -84,10 +84,10 @@ export function redirectTo(url) {
|
|||
return window.location.assign(url);
|
||||
}
|
||||
|
||||
export function webIDEUrl(projectUrl = undefined) {
|
||||
export function webIDEUrl(route = undefined) {
|
||||
let returnUrl = `${gon.relative_url_root}/-/ide/`;
|
||||
if (projectUrl) {
|
||||
returnUrl += `project${projectUrl}`;
|
||||
if (route) {
|
||||
returnUrl += `project${route}`;
|
||||
}
|
||||
return returnUrl;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue