Merge pull request #10380 from ioito/hotfix/qx-bucket-delete-tooltip

fix: add bucket tooltip
This commit is contained in:
Zexi Li
2021-03-11 11:41:30 +08:00
committed by GitHub
3 changed files with 3657 additions and 3530 deletions
+2734 -2703
View File
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -1196,7 +1196,7 @@ func (bucket *SBucket) ValidateDeleteCondition(ctx context.Context) error {
return bucket.SSharableVirtualResourceBase.ValidateDeleteCondition(ctx)
}
if bucket.ObjectCnt > 0 {
return httperrors.NewNotEmptyError("not an empty bucket")
return httperrors.NewNotEmptyError("Buckets that are not empty do not support this operation")
}
return bucket.ValidatePurgeCondition(ctx)
}