mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-19 08:19:15 +08:00
feat: 回收站选择为空的时候禁用删除按钮 (#2841)
This commit is contained in:
parent
53e18b2aee
commit
1a820e00ff
@ -32,5 +32,5 @@ func checkCmdAvailability(cmdStr string) error {
|
||||
if cmd.Which(cmdStr) {
|
||||
return nil
|
||||
}
|
||||
return buserr.WithName(cmdStr, constant.ErrCmdNotFound)
|
||||
return buserr.WithName(constant.ErrCmdNotFound, cmdStr)
|
||||
}
|
||||
|
@ -6,7 +6,7 @@
|
||||
<el-button @click="clear" type="primary" :disabled="data == null || data.length == 0">
|
||||
{{ $t('file.clearRecycleBin') }}
|
||||
</el-button>
|
||||
<el-button @click="patchDelete" :disabled="data == null || data.length == 0">
|
||||
<el-button @click="patchDelete" :disabled="data == null || selects.length == 0">
|
||||
{{ $t('commons.button.delete') }}
|
||||
</el-button>
|
||||
<ComplexTable
|
||||
|
Loading…
x
Reference in New Issue
Block a user