Przeglądaj źródła

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

dengdx 1 miesiąc temu
rodzic
commit
5fd432b47b
1 zmienionych plików z 2 dodań i 2 usunięć
  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={