fixed pinns

pull/5003/head
lianahus 5 months ago committed by Aniket
parent 1f5fdddc4f
commit 42402a1110
  1. 1
      apps/remix-ide/src/app/providers/environment-explorer.tsx
  2. 2
      apps/remix-ide/src/blockchain/blockchain.tsx
  3. 2
      apps/remix-ide/src/remixAppManager.js
  4. 8
      libs/remix-ui/grid-view/src/lib/remix-ui-grid-cell.css
  5. 2
      libs/remix-ui/grid-view/src/lib/remix-ui-grid-cell.tsx

@ -106,6 +106,7 @@ export class EnvironmentExplorer extends ViewPlugin {
return <RemixUIGridCell
plugin={this}
title={provider.name}
pinned={this.pinnedProviders.includes(provider.name)}
pinStateCallback={async (pinned: boolean) => {
const providerName = await this.call('blockchain', 'getProvider')

@ -531,7 +531,7 @@ export class Blockchain extends Plugin {
changeExecutionContext(context, confirmCb, infoCb, cb) {
if (context.context === 'item-another-chain') {
this.call('manager', 'activatePlugin', 'environmentExplorer').then(() => this.call('tabs', 'focus', 'environmentExplorer'))
} else {
} else {
return this.executionContext.executionContextChange(context, null, confirmCb, infoCb, cb)
}
}

@ -86,8 +86,6 @@ let requiredModules = [ // services + layout views + system views
'walletconnect'
]
// dependentModules shouldn't be manually activated (e.g hardhat is activated by remixd)
const dependentModules = ['foundry', 'hardhat', 'truffle', 'slither']

@ -24,11 +24,11 @@
outline: none;
}
.remixui_grid_cell_pin {
width: 1rem;
width: 1rem;
height: 1rem;
position: relative;
right: 1rem;
top: -0.5rem;
right: 1.5rem;
top: -4rem;
background: transparent;
}
@ -41,7 +41,7 @@
.remixui_grid_cell_tags_no_pin {
position: relative;
right: 0rem;
top: 0.1rem;
top: -6.5rem;
}
.remixui_grid_cell_tag {

@ -34,8 +34,8 @@ export const RemixUIGridCell = (props: RemixUIGridCellProps) => {
useEffect(() => {
if (props.tagList) setAnyEnabled(props.tagList.some((key) => filterCon.keyValueMap[key]?.enabled))
else setAnyEnabled(filterCon?.keyValueMap['no tag']?.enabled)
if (!props.tagList || props.tagList.length == 0) setAnyEnabled(true)
if (filterCon.filter != '') setAnyEnabled(anyEnabled && props.title.toLowerCase().includes(filterCon.filter))
console.log("pin ", pinned)
}, [filterCon, props.tagList])

Loading…
Cancel
Save