diff --git a/src/frontend/devops-pipeline/src/components/ExecDetail/Artifactory.vue b/src/frontend/devops-pipeline/src/components/ExecDetail/Artifactory.vue index 0e64f515ce8..a773bbf8788 100644 --- a/src/frontend/devops-pipeline/src/components/ExecDetail/Artifactory.vue +++ b/src/frontend/devops-pipeline/src/components/ExecDetail/Artifactory.vue @@ -15,20 +15,27 @@ - - - + @@ -95,7 +102,10 @@ ]).then(([res, permission]) => { this.artifactories = res.records.map(item => ({ ...item, - icon: item.folder ? 'folder' : extForFile(item.name) + icon: item.folder ? 'folder' : extForFile(item.name), + size: item.folder ? this.sizeFormatter(this.getFolderSize(item)) : this.sizeFormatter(item.size), + disabled: this.sizeFormatter(this.getFolderSize(item)).includes('GB') && this.sizeFormatter(this.getFolderSize(item)).split(' ')[0] > 10, + disabledTips: this.$t('downloadDisabledTips') })) || [] this.hasPermission = permission if (this.artifactories.length <= 0) {