Skip to content

Commit

Permalink
trying out radio buttons but probably discarding
Browse files Browse the repository at this point in the history
  • Loading branch information
knollengewaechs committed Sep 30, 2023
1 parent 5640d14 commit cd6d3d9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
4 changes: 2 additions & 2 deletions conf/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,11 @@ features {
discussionBoard = "https://forum.image.sc/tag/webknossos"
discussionBoardRequiresAdmin = false
hideNavbarLogin = false
isWkorgInstance = false

This comment has been minimized.

Copy link
@knollengewaechs

knollengewaechs Oct 2, 2023

Author Contributor

brrrrr

isWkorgInstance = true
taskReopenAllowedInSeconds = 30
allowDeleteDatasets = true
# to enable jobs for local development, use "yarn enable-jobs" to also activate it in the database
jobsEnabled = false

This comment has been minimized.

Copy link
@knollengewaechs

knollengewaechs Oct 2, 2023

Author Contributor

revert all changes before merging

jobsEnabled = true
voxelyticsEnabled = false
# For new users, the dashboard will show a banner which encourages the user to check out the following dataset.
# If isWkorgInstance == true, `/createExplorative/hybrid/true` is appended to the URL so that a new tracing is opened.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Button, Dropdown, Modal, Radio, Tooltip } from "antd";
import { Button, Dropdown, Modal, Radio, Space, Tooltip } from "antd";
import {
HistoryOutlined,
CheckCircleOutlined,
Expand Down Expand Up @@ -259,6 +259,7 @@ export function getAISegmentationMenu(
isAINucleiSegmentationModalOpen: boolean,
isAINeuronSegmentationModalOpen: boolean,
): React.ReactNode {
const radioStyle = { width: 100, height: 100, padding: 10 }
return isAINeuronSegmentationModalOpen ? (
<Modal
open
Expand All @@ -271,34 +272,35 @@ export function getAISegmentationMenu(
onCancel={() => Store.dispatch(setAINeuronSegmentationModalVisibilityAction(false))}
>
Choose a processing job for your dataset:
<Radio.Group buttonStyle="solid">
<Radio.Button>
<div style={{ textAlign: "center" }}>
<Radio.Group buttonStyle="outline">
<Space align="center">
<Radio.Button style={radioStyle}>
<>
Neuron segmentation
<img
src={`/assets/images/nuclei_inferral.png`}
alt={`Nuclei inferral`}
style={{ width: 400, height: "auto", borderRadius: 3 }}
style={{ width: 80, height: "auto", }}
/>
</div>
</>
</Radio.Button>
<Radio.Button>
<div style={{ textAlign: "center" }}>
<Radio.Button style={radioStyle} disabled>
Nuclei detection
<img
src={`/assets/images/nuclei_inferral.png`}
alt={`Nuclei inferral`}
style={{ width: 400, height: "auto", borderRadius: 3 }}
style={{ width: 80, height: "auto", }}
/>
</div>
</Radio.Button>
<Radio.Button>
<div style={{ textAlign: "center" }}>
<Radio.Button style={radioStyle} disabled>
Mitochondria detection
<img
src={`/assets/images/nuclei_inferral.png`}
alt={`Nuclei inferral`}
style={{ width: 400, height: "auto", borderRadius: 3 }}
style={{ width: 80, height: "auto", }}
/>
</div>
</Radio.Button>
</Space>
</Radio.Group >
{/* insert modal here */}
</Modal >
Expand Down

0 comments on commit cd6d3d9

Please sign in to comment.