feat: Add mode validity for the base viewer (#2525)
* feat: Add mode validity for the base viewer * feat: Edit documentation and remove unnecessary files * feat: Add probe tool documentation * docs: Improved screenshots annotations * Added new screenshot for measurements
This commit is contained in:
1 parent
4f3f510cac
commit
46c2dc285c
37 files changed
+90
-416
No files matched your search
@@ -336,6 +336,7 @@ function WorkList({
|
||||
{appConfig.modes.map((mode, i) => {
|
||||
const isFirst = i === 0;
|
||||
|
||||
const isValidMode = mode.isValidMode({ modalities })
|
||||
// TODO: Modes need a default/target route? We mostly support a single one for now.
|
||||
// We should also be using the route path, but currently are not
|
||||
// mode.id
|
||||
@@ -350,8 +351,8 @@ function WorkList({
|
||||
>
|
||||
<Button
|
||||
rounded="full"
|
||||
variant="contained" // outlined
|
||||
disabled={false}
|
||||
variant={isValidMode ? "contained" : "disabled"}
|
||||
disabled={!isValidMode}
|
||||
endIcon={<Icon name="launch-arrow" />} // launch-arrow | launch-info
|
||||
className={classnames('font-bold', { 'ml-2': !isFirst })}
|
||||
onClick={() => {}}
|
||||
|
||||
Reference in new issue
Block a user