|
|
@@ -52,10 +52,9 @@ const ImageStateControl: React.FC = () => {
|
|
|
}, [selectedViewers, bodyPositionList]);
|
|
|
|
|
|
// 判断按钮可见性
|
|
|
- const isSingleGrid = gridLayout === '1x1';
|
|
|
const judgedStatus = selectedImage?.dview?.judged_status || '';
|
|
|
- const showRejectButton = isSingleGrid && judgedStatus !== 'Reject';
|
|
|
- const showRestoreButton = isSingleGrid && judgedStatus === 'Reject';
|
|
|
+ const showRejectButton = judgedStatus !== 'Reject';
|
|
|
+ const showRestoreButton = judgedStatus === 'Reject';
|
|
|
|
|
|
// 拒绝按钮处理函数
|
|
|
const handleReject = async () => {
|
|
|
@@ -138,7 +137,6 @@ const ImageStateControl: React.FC = () => {
|
|
|
|
|
|
// 另存为按钮显示条件:单分格 + 有选中图像 + 图像已曝光
|
|
|
const showSaveAsButton =
|
|
|
- isSingleGrid &&
|
|
|
selectedImage !== null &&
|
|
|
selectedImage?.dview?.expose_status === 'Exposed';
|
|
|
|