feat: 限制 PHP 运行环境制作镜像中被删除 (#5304)
Some checks failed
Build / SonarCloud (push) Failing after -5m2s
sync2gitee / repo-sync (push) Failing after -5m5s
Build Test / build-linux-binary (push) Failing after 47s

This commit is contained in:
zhengkunwang 2024-06-05 18:08:09 +08:00 committed by GitHub
parent 80b7bb44f7
commit 7f583e5678
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -32,7 +32,15 @@
show-overflow-tooltip
>
<template #default="{ row }">
<el-text type="primary" class="cursor-pointer" @click="openDetail(row)">
<el-text
type="primary"
class="cursor-pointer"
@click="openDetail(row)"
v-if="row.status != 'building'"
>
{{ row.name }}
</el-text>
<el-text type="info" class="cursor-pointer" v-else>
{{ row.name }}
</el-text>
</template>
@ -142,6 +150,9 @@ const buttons = [
},
{
label: i18n.global.t('commons.button.delete'),
disabled: function (row: Runtime.Runtime) {
return row.status === 'building';
},
click: function (row: Runtime.Runtime) {
openDelete(row);
},