- plugins => activate
 - pluginCall => call
 - deactivatePlugin => deactivate
deactivatePlugin
yann300 4 years ago
parent 89e4b2b36e
commit 536816f8eb
  1. 2
      apps/remix-ide-e2e/src/tests/workspace.test.ts
  2. 8
      apps/remix-ide/src/app.js
  3. 8
      apps/remix-ide/src/remixAppManager.js

@ -5,7 +5,7 @@ import sauce from './sauce'
module.exports = {
before: function (browser: NightwatchBrowser, done: VoidFunction) {
init(browser, done, 'http://127.0.0.1:8080?plugins=solidity,udapp&plugincall=fileManager//open//3_Ballot.sol&deactivateplugins=home', false)
init(browser, done, 'http://127.0.0.1:8080?activate=solidity,udapp&call=fileManager//open//3_Ballot.sol&deactivate=home', false)
},
'CheckSolidityActivatedAndUDapp': function (browser: NightwatchBrowser) {

@ -406,8 +406,8 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
if (Array.isArray(workspace)) {
appManager.activatePlugin(workspace).then(() => {
try {
if (params.deactivateplugins) {
appManager.deactivatePlugin(params.deactivateplugins.split(','))
if (params.deactivate) {
appManager.deactivatePlugin(params.deactivate.split(','))
}
} catch (e) {
console.log(e)
@ -416,8 +416,8 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
// If plugins are loaded from the URL params, we focus on the last one.
if (pluginLoader.current === 'queryParams' && workspace.length > 0) menuicons.select(workspace[workspace.length - 1])
if (params.plugincall) {
const callDetails = params.plugincall.split('//')
if (params.call) {
const callDetails = params.call.split('//')
if (callDetails.length > 1) {
toolTip(`initiating ${callDetails[0]} ...`)
// @todo(remove the timeout when activatePlugin is on 0.3.0)

@ -135,13 +135,13 @@ class PluginLoader {
this.loaders['queryParams'] = {
set: () => {},
get: () => {
const { plugins } = queryParams.get()
if (!plugins) return []
return plugins.split(',')
const { activate } = queryParams.get()
if (!activate) return []
return activate.split(',')
}
}
this.current = queryParams.get()['plugins'] ? 'queryParams' : 'localStorage'
this.current = queryParams.get()['activate'] ? 'queryParams' : 'localStorage'
}
set (plugin, actives) {

Loading…
Cancel
Save