Explorar o código

RIS按钮控制在只在worklist模式下显示

dengdx hai 1 mes
pai
achega
5fd432b47b
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/pages/patient/components/ActionPanel.tsx

+ 2 - 2
src/pages/patient/components/ActionPanel.tsx

@@ -428,7 +428,7 @@ const ActionPanel: React.FC = () => {
         }
         onClick={handleLock}
       />
-      <ActionButton
+      {currentKey === 'worklist' && (<ActionButton
         icon={
           <Icon
             module="module-patient"
@@ -449,7 +449,7 @@ const ActionPanel: React.FC = () => {
         loading={risSyncing}
         disabled={risSyncing}
         data-testid="ris-sync-button"
-      />
+      />)}
       {currentKey === 'historylist' && (
       <ActionButton
         icon={