Skip to content

Commit

Permalink
feat(ui): change output link for a button (#1771)
Browse files Browse the repository at this point in the history
* feat(UI): Change output link for button + add space between number and 'download'

close #1769
  • Loading branch information
Skraye authored Jul 24, 2023
1 parent fc5a8e9 commit 932783c
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions ui/src/components/executions/VarValue.vue
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
<template>
<el-link
v-if="isFile(value)"
:icon="Download"
target="_blank"
type="primary"
:href="itemUrl(value)"
>
<a class="el-button el-button--primary mt-2 mb-2 " v-if="isFile(value)" :href="itemUrl(value)" target="_blank">
<Download />
&nbsp;
{{ $t('download') }}
&nbsp;
<span v-if="humanSize">({{ humanSize }})</span>
</el-link>
</a>
<span v-else>
{{ value }}
</span>
Expand All @@ -34,8 +31,7 @@
},
itemUrl(value) {
return `${apiRoot}executions/${this.execution.id}/file?path=${value}`;
},
}
},
created() {
if (this.isFile(this.value)) {
Expand Down

0 comments on commit 932783c

Please sign in to comment.