mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-02-21 21:33:30 +08:00
feat: 限制 PHP 运行环境制作镜像中被删除 (#5304)
This commit is contained in:
parent
80b7bb44f7
commit
7f583e5678
1 changed files with 12 additions and 1 deletions
|
@ -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);
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue