Update labels

r_light
yann300 4 months ago
parent 3932eb0284
commit 4ae9cd971b
  1. 12
      apps/remix-ide/src/app/providers/environment-explorer.tsx
  2. 11
      apps/remix-ide/src/app/udapp/run-tab.js

@ -113,13 +113,13 @@ export class EnvironmentExplorer extends ViewPlugin {
pinStateCallback={async (pinned: boolean) => {
if (pinned) {
this.emit('providerPinned', provider.name, provider)
this.call('notification', 'toast', `"${provider.displayName}" has been added to the Network list of the Deploy & Run Transactions module.`)
this.call('notification', 'toast', `"${provider.displayName}" has been added to the Environment list of the Deploy & Run Transactions plugin.`)
return true
}
const providerName = await this.call('blockchain', 'getProvider')
if (providerName !== provider.name) {
this.emit('providerUnpinned', provider.name, provider)
this.call('notification', 'toast', `"${provider.displayName}" has been removed from the Network list of the Deploy & Run Transactions module.`)
this.call('notification', 'toast', `"${provider.displayName}" has been removed from the Environment list of the Deploy & Run Transactions plugin.`)
return true
} else {
this.call('notification', 'toast', 'Cannot unpin the current selected provider')
@ -146,13 +146,13 @@ export class EnvironmentExplorer extends ViewPlugin {
pinStateCallback={async (pinned: boolean) => {
if (pinned) {
this.emit('providerPinned', provider.name, provider)
this.call('notification', 'toast', `"${provider.displayName}" has been added to the Network list of the Deploy & Run Transactions module.`)
this.call('notification', 'toast', `"${provider.displayName}" has been added to the Environment list of the Deploy & Run Transactions plugin.`)
return true
}
const providerName = await this.call('blockchain', 'getProvider')
if (providerName !== provider.name) {
this.emit('providerUnpinned', provider.name, provider)
this.call('notification', 'toast', `"${provider.displayName}" has been removed from the Network list of the Deploy & Run Transactions module.`)
this.call('notification', 'toast', `"${provider.displayName}" has been removed from the Environment list of the Deploy & Run Transactions plugin.`)
return true
} else {
this.call('notification', 'toast', 'Cannot unpin the current selected provider')
@ -178,13 +178,13 @@ export class EnvironmentExplorer extends ViewPlugin {
pinStateCallback={async (pinned: boolean) => {
if (pinned) {
this.emit('providerPinned', provider.name, provider)
this.call('notification', 'toast', `"${provider.displayName}" has been added to the Network list of the Deploy & Run Transactions module.`)
this.call('notification', 'toast', `"${provider.displayName}" has been added to the Environment list of the Deploy & Run Transactions plugin.`)
return true
}
const providerName = await this.call('blockchain', 'getProvider')
if (providerName !== provider.name) {
this.emit('providerUnpinned', provider.name, provider)
this.call('notification', 'toast', `"${provider.displayName}" has been removed from the Network list of the Deploy & Run Transactions module.`)
this.call('notification', 'toast', `"${provider.displayName}" has been removed from the Environment list of the Deploy & Run Transactions plugin.`)
return true
} else {
this.call('notification', 'toast', 'Cannot unpin the current selected provider')

@ -130,11 +130,11 @@ export class RunTab extends ViewPlugin {
const udapp = this // eslint-disable-line
const descriptions = {
'vm-cancun': 'Deploy to the in-browser virtual machine which runs the cancun fork.',
'vm-shanghai': 'Deploy to the in-browser virtual machine which runs the cancun fork.',
'vm-paris': 'Deploy to the in-browser virtual machine which runs the paris fork.',
'vm-london': 'Deploy to the in-browser virtual machine which runs the london fork.',
'vm-berlin': 'Deploy to the in-browser virtual machine which runs the berlin fork.',
'vm-cancun': 'Deploy to the in-browser virtual machine which runs the Cancun fork.',
'vm-shanghai': 'Deploy to the in-browser virtual machine which runs the Shanghai fork.',
'vm-paris': 'Deploy to the in-browser virtual machine which runs the Paris fork.',
'vm-london': 'Deploy to the in-browser virtual machine which runs the London fork.',
'vm-berlin': 'Deploy to the in-browser virtual machine which runs the Berlin fork.',
'vm-mainnet-fork': 'Deploy to the in-browser virtual machine which forks locally the ethereum mainnet.',
'vm-sepolia-fork': 'Deploy to the in-browser virtual machine which forks locally the sepolia testnet.',
'vm-custom-fork': 'Deploy to the in-browser virtual machine which forks locally a custom network.',
@ -166,7 +166,6 @@ export class RunTab extends ViewPlugin {
}
const addProvider = async (position, name, displayName, isInjected, isVM, fork = '', dataId = '', title = '') => {
console.log(name)
await this.call('blockchain', 'addProvider', {
position,
options: {},

Loading…
Cancel
Save