1
0
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:
zhengkunwang 2023-11-08 10:33:29 +08:00 committed by GitHub
parent 53e18b2aee
commit 1a820e00ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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)
}

View File

@ -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