Skip to content

Commit

Permalink
feat:流水线支持归档目录 TencentBlueKing#9320
Browse files Browse the repository at this point in the history
  • Loading branch information
vhwweng committed Sep 11, 2023
1 parent c6064d4 commit 1b0cc1d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
14 changes: 12 additions & 2 deletions src/frontend/devops-pipeline/src/components/Outputs/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,17 @@
theme="primary"
v-for="btn in btns"
:key="btn.text"
:disabled="btn.disabled"
@click="btn.handler"
>
{{ btn.text }}
<bk-popover
:disabled="!btn.disabled"
>
{{ btn.text }}
<template slot="content">
<p>{{ btn.disabledTips }}</p>
</template>
</bk-popover>
</bk-button>
<output-qrcode
:output="activeOutput"
Expand Down Expand Up @@ -244,7 +252,9 @@
case this.activeOutput.artifactoryType !== 'IMAGE':
defaultBtns.unshift({
text: this.$t('download'),
handler: () => window.open(this.activeOutputDetail.url, '_blank')
handler: () => window.open(this.activeOutputDetail.url, '_blank'),
disabled: this.activeOutputDetail.size.includes('GB') && this.activeOutputDetail.size.split(' ')[0] > 10,
disabledTips: this.$t('downloadDisabledTips')
})
break
}
Expand Down
3 changes: 2 additions & 1 deletion src/frontend/locale/pipeline/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -1175,5 +1175,6 @@
"exitFullscreen": "Exit Full Screen",
"skipSuc": "Skipped the failed step and continued running",
"skipFail": "Skip failed",
"nonManual": "Non Manual"
"nonManual": "Non Manual",
"downloadDisabledTips": "The file size in the directory exceeds 10 G. Please go to the BKrepo to download in batches."
}
3 changes: 2 additions & 1 deletion src/frontend/locale/pipeline/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -1178,5 +1178,6 @@
"exitFullscreen": "退出全屏",
"skipSuc": "已跳过失败的步骤,继续运行",
"skipFail": "跳过失败",
"nonManual": "非手动"
"nonManual": "非手动",
"downloadDisabledTips": "目录下的文件大小超过 10 G,请到制品库分批下载"
}

0 comments on commit 1b0cc1d

Please sign in to comment.