fix data id in new script runner ui. remove localhost remixd dropdown

gnosAA
Joseph Izang 4 days ago committed by Aniket
parent 1859087845
commit 1f07a163a4
  1. 2
      libs/remix-ui/scriptrunner/src/lib/components/config-section.tsx
  2. 14
      libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx

@ -95,7 +95,7 @@ export default function ConfigSection(props: ConfigSectionProps) {
{ props.activeConfig && props.activeConfig.name === props.config.name && { props.activeConfig && props.activeConfig.name === props.config.name &&
<div className={`${!isVisible ? 'd-flex flex-row align-items-center justify-content-center pt-1' : 'd-flex flex-row pb-1 align-items-center justify-content-center'}`}> <div className={`${!isVisible ? 'd-flex flex-row align-items-center justify-content-center pt-1' : 'd-flex flex-row pb-1 align-items-center justify-content-center'}`}>
{isVisible && <span onAnimationEnd={handleAnimationEnd} className="text-success" style={{ animation: 'fadeOut 5s forwards', animationFillMode: 'forwards' }}>Config loaded</span>} {isVisible && <span onAnimationEnd={handleAnimationEnd} className="text-success" style={{ animation: 'fadeOut 5s forwards', animationFillMode: 'forwards' }}>Config loaded</span>}
<FontAwesomeIcon data-id={`sr-loaded-${props.config.name}`} className="text-success ml-3" icon={faCheck}></FontAwesomeIcon> <FontAwesomeIcon data-id={`sr-loaded-${props.config.title}`} className="text-success ml-3" icon={faCheck}></FontAwesomeIcon>
</div> </div>
} }
</div> </div>

@ -1116,20 +1116,6 @@ export function Workspace() {
{selectedWorkspace ? selectedWorkspace.name === LOCALHOST ? togglerText : selectedWorkspace.name : currentWorkspace === LOCALHOST ? formatNameForReadonly('localhost') : NO_WORKSPACE} {selectedWorkspace ? selectedWorkspace.name === LOCALHOST ? togglerText : selectedWorkspace.name : currentWorkspace === LOCALHOST ? formatNameForReadonly('localhost') : NO_WORKSPACE}
</Dropdown.Toggle> </Dropdown.Toggle>
<Dropdown.Menu as={CustomMenu} className="w-100 custom-dropdown-items" data-id="custom-dropdown-items"> <Dropdown.Menu as={CustomMenu} className="w-100 custom-dropdown-items" data-id="custom-dropdown-items">
{currentWorkspace !== LOCALHOST && <Dropdown.Item
onClick={() => {
switchWorkspace(LOCALHOST)
}}
>
{currentWorkspace === LOCALHOST ? (
<span>&#10003; Connected to Local Filesystem </span>
) :
<span className="pl-3">
{' '}
<FormattedMessage id="filePanel.connectToLocalhost" />{' '}
</span>
}
</Dropdown.Item>}
<ShowNonLocalHostMenuItems /> <ShowNonLocalHostMenuItems />
{(global.fs.browser.workspaces.length <= 0 || currentWorkspace === NO_WORKSPACE) && ( {(global.fs.browser.workspaces.length <= 0 || currentWorkspace === NO_WORKSPACE) && (
<Dropdown.Item <Dropdown.Item

Loading…
Cancel
Save