add viewport notification
This commit is contained in:
parent
947f671ab1
commit
ebef71da3b
@ -35,7 +35,7 @@ const Notification = ({ type, text, actionButtons }) => {
|
|||||||
const { icon, color } = getIconData();
|
const { icon, color } = getIconData();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="p-2 flex flex-col lg:flex-row lg:items-center bg-common-bright rounded">
|
<div className="mx-2 p-2 flex flex-col lg:flex-row lg:items-center bg-common-bright rounded">
|
||||||
<div className="flex flex-grow">
|
<div className="flex flex-grow">
|
||||||
<Icon name={icon} className={classnames('w-5', color)} />
|
<Icon name={icon} className={classnames('w-5', color)} />
|
||||||
<span className="text-base text-black ml-2">{text}</span>
|
<span className="text-base text-black ml-2">{text}</span>
|
||||||
|
|||||||
@ -69,7 +69,7 @@ const ViewportActionBar = ({ isTracked, isLocked, modality }) => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
return (
|
return (
|
||||||
<div className="flex items-center m-2 pb-2 border-b border-primary-light">
|
<div className="flex items-center mx-2 mt-2 pb-2 border-b border-primary-light">
|
||||||
<div className="flex flex-grow">
|
<div className="flex flex-grow">
|
||||||
<div className="flex items-center">
|
<div className="flex items-center">
|
||||||
{renderIconStatus()}
|
{renderIconStatus()}
|
||||||
|
|||||||
@ -18,6 +18,7 @@ import {
|
|||||||
StudyBrowser,
|
StudyBrowser,
|
||||||
ViewportActionBar,
|
ViewportActionBar,
|
||||||
ViewportGrid,
|
ViewportGrid,
|
||||||
|
Notification,
|
||||||
} from '@ohif/ui';
|
} from '@ohif/ui';
|
||||||
|
|
||||||
import Header from './components/Header';
|
import Header from './components/Header';
|
||||||
@ -57,7 +58,35 @@ import ViewportToolbar from './components/ViewportToolBar';
|
|||||||
<div className="flex flex-2 w-100 border-b border-transparent h-12">
|
<div className="flex flex-2 w-100 border-b border-transparent h-12">
|
||||||
<ViewportToolbar />
|
<ViewportToolbar />
|
||||||
</div>
|
</div>
|
||||||
<div className="flex flex-1 items-center justify-center bg-black text-white border rounded-lg border-secondary-light h-100 overflow-hidden">CONTENT</div>
|
<div className="flex flex-1 h-full overflow-hidden bg-black items-center justify-center">
|
||||||
|
<ViewportGrid
|
||||||
|
rows={1}
|
||||||
|
cols={2}
|
||||||
|
viewportContents={[
|
||||||
|
<div className="flex flex-col h-full">
|
||||||
|
<ViewportActionBar isTracked modality="CT" />
|
||||||
|
<Notification
|
||||||
|
text="Track all measurement for this series?"
|
||||||
|
type="info"
|
||||||
|
actionButtons={
|
||||||
|
<div>
|
||||||
|
<Button>No</Button>
|
||||||
|
<Button className="ml-2">No, do not ask again</Button>
|
||||||
|
<Button className="ml-2" color="primary">
|
||||||
|
Yes
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
</div>,
|
||||||
|
<div className="flex flex-col h-full">
|
||||||
|
<ViewportActionBar isTracked={false} modality="CT" />
|
||||||
|
</div>,
|
||||||
|
]}
|
||||||
|
setActiveViewportIndex={setActiveViewportIndex}
|
||||||
|
activeViewportIndex={activeViewportIndex}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<SidePanel
|
<SidePanel
|
||||||
side="right"
|
side="right"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user