Skip to content

Commit 1f07a16

Browse files
joeizangAniket-Engg
authored andcommitted
fix data id in new script runner ui. remove localhost remixd dropdown
1 parent 1859087 commit 1f07a16

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

libs/remix-ui/scriptrunner/src/lib/components/config-section.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export default function ConfigSection(props: ConfigSectionProps) {
9595
{ props.activeConfig && props.activeConfig.name === props.config.name &&
9696
<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'}`}>
9797
{isVisible && <span onAnimationEnd={handleAnimationEnd} className="text-success" style={{ animation: 'fadeOut 5s forwards', animationFillMode: 'forwards' }}>Config loaded</span>}
98-
<FontAwesomeIcon data-id={`sr-loaded-${props.config.name}`} className="text-success ml-3" icon={faCheck}></FontAwesomeIcon>
98+
<FontAwesomeIcon data-id={`sr-loaded-${props.config.title}`} className="text-success ml-3" icon={faCheck}></FontAwesomeIcon>
9999
</div>
100100
}
101101
</div>

libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,20 +1116,6 @@ export function Workspace() {
11161116
{selectedWorkspace ? selectedWorkspace.name === LOCALHOST ? togglerText : selectedWorkspace.name : currentWorkspace === LOCALHOST ? formatNameForReadonly('localhost') : NO_WORKSPACE}
11171117
</Dropdown.Toggle>
11181118
<Dropdown.Menu as={CustomMenu} className="w-100 custom-dropdown-items" data-id="custom-dropdown-items">
1119-
{currentWorkspace !== LOCALHOST && <Dropdown.Item
1120-
onClick={() => {
1121-
switchWorkspace(LOCALHOST)
1122-
}}
1123-
>
1124-
{currentWorkspace === LOCALHOST ? (
1125-
<span>&#10003; Connected to Local Filesystem </span>
1126-
) :
1127-
<span className="pl-3">
1128-
{' '}
1129-
<FormattedMessage id="filePanel.connectToLocalhost" />{' '}
1130-
</span>
1131-
}
1132-
</Dropdown.Item>}
11331119
<ShowNonLocalHostMenuItems />
11341120
{(global.fs.browser.workspaces.length <= 0 || currentWorkspace === NO_WORKSPACE) && (
11351121
<Dropdown.Item

0 commit comments

Comments
 (0)