Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
2446e23c
Unverified
Commit
2446e23c
authored
Apr 29, 2021
by
yann300
Committed by
GitHub
Apr 29, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1110 from ethereum/fixmanagerdeact
Fixmanagerdeact
parents
ac18b5dd
bd27e288
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
2 deletions
+12
-2
plugin-manager-component.js
.../remix-ide/src/app/components/plugin-manager-component.js
+1
-1
tab-proxy.js
apps/remix-ide/src/app/panels/tab-proxy.js
+1
-1
remixAppManager.js
apps/remix-ide/src/remixAppManager.js
+10
-0
No files found.
apps/remix-ide/src/app/components/plugin-manager-component.js
View file @
2446e23c
...
@@ -108,7 +108,7 @@ class PluginManagerComponent extends ViewPlugin {
...
@@ -108,7 +108,7 @@ class PluginManagerComponent extends ViewPlugin {
}
}
deactivateP
(
name
)
{
deactivateP
(
name
)
{
this
.
appManager
.
deactivatePlugin
(
name
)
this
.
call
(
'manager'
,
'deactivatePlugin'
,
name
)
_paq
.
push
([
'trackEvent'
,
'manager'
,
'deactivate'
,
name
])
_paq
.
push
([
'trackEvent'
,
'manager'
,
'deactivate'
,
name
])
}
}
...
...
apps/remix-ide/src/app/panels/tab-proxy.js
View file @
2446e23c
...
@@ -128,7 +128,7 @@ export class TabProxy extends Plugin {
...
@@ -128,7 +128,7 @@ export class TabProxy extends Plugin {
()
=>
this
.
event
.
emit
(
'switchApp'
,
name
),
()
=>
this
.
event
.
emit
(
'switchApp'
,
name
),
()
=>
{
()
=>
{
this
.
event
.
emit
(
'closeApp'
,
name
)
this
.
event
.
emit
(
'closeApp'
,
name
)
this
.
appManager
.
deactivatePlugin
(
name
)
this
.
call
(
'manager'
,
'deactivatePlugin'
,
name
)
},
},
icon
icon
)
)
...
...
apps/remix-ide/src/remixAppManager.js
View file @
2446e23c
...
@@ -52,6 +52,16 @@ export class RemixAppManager extends PluginManager {
...
@@ -52,6 +52,16 @@ export class RemixAppManager extends PluginManager {
return
isNative
(
from
.
name
)
return
isNative
(
from
.
name
)
}
}
async
deactivatePlugin
(
name
)
{
const
[
to
,
from
]
=
[
await
this
.
getProfile
(
name
),
await
this
.
getProfile
(
this
.
requestFrom
)
]
if
(
this
.
canDeactivatePlugin
(
from
,
to
))
{
await
this
.
toggleActive
(
name
)
}
}
async
canCall
(
from
,
to
,
method
,
message
)
{
async
canCall
(
from
,
to
,
method
,
message
)
{
// Make sure the caller of this methods is the target plugin
// Make sure the caller of this methods is the target plugin
if
(
to
!==
this
.
currentRequest
.
from
)
{
if
(
to
!==
this
.
currentRequest
.
from
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment