Skip to content

Commit

Permalink
disable non-implemented action buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
pokornyd committed Nov 11, 2024
1 parent 2687c66 commit f690efc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/menu/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const Menu: React.FC<MenuProps> = (props) => {
<div className="menu-column">
{[...props.actions.values()].map((action) => (
<button
className={`button ${props.style ?? ""}`}
className={`button ${props.style ?? ""} ${(!action.subMenuActions && !action.route) ? "disabled" : ""}`}
key={action.title}
onClick={() => handleActionSelect(action)}
onMouseEnter={() => setHoveredAction(action)}
Expand Down
2 changes: 1 addition & 1 deletion src/components/sync/SyncSource.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const SyncSource: React.FC = () => {
<form name="source" onSubmit={handleSubmit} autoComplete="off">
<h2>Sync - Provide Source Information</h2>
<br />
<label className="switch">
<label className="switch disabled">
<input
type="checkbox"
checked={useModelFile}
Expand Down
2 changes: 1 addition & 1 deletion src/components/sync/SyncTarget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const SyncTarget: React.FC = () => {
<form onSubmit={handleSubmit} autoComplete="off">
<h2>Sync - Provide Target Information</h2>
<br />
<label className="switch">
<label className="switch disabled">
<input
type="checkbox"
checked={apiKeysMatch}
Expand Down

0 comments on commit f690efc

Please sign in to comment.